Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Converting ASCII to UTF-8

$
0
0

Hi,

 

I have the following text: Utaz&AOE-s

 

If I check the encoding of this text with mb_detect_encoding, it says that the text is pure ASCII. My page's encoding is UTF-8, so on the webpage I should see Utazás (&AOE- is an UT8 code for á.

 

It doesnt matter what I do, the text is displayed as above. I've tried doing many things like converting the text to utf8, converting to utf7 than to utf8, ....

 

Nothing worked.

 

Any idea why cant I display the above text correcly?

 

I also have this line in my code: header('Content-Type: text/html; charset=utf-8');

 

Any idea is appreciated!

 

Thanks,

Tony


Viewing all articles
Browse latest Browse all 13200