encoding - PHP: why am I not viewing correctly the text? -


i set both php 5 , apache use utf-8 encoding. tried show in browser result of php code:

echo "trying visualize letter ü" 

and shows me result:

trying visualize letter � 

why?

try :

<?php header('content-type: text/plain; charset=utf-8'); echo "trying visualize letter ü"; 

if doesn't work, file in different encoding utf-8.

what's different between utf-8 , utf-8 without bom?

change file encoding utf-8 via vim in script


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -