UTF-8 xml file shows Gibberish

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-05-15T18:41:40Z Indexed on 2010/05/15 18:44 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

I have a UTF-8 encoded xml file, which was exported from a Wordpress MySQL database.

While the file is saved as UTF-8, and the encoding is UTF-8, I get gibberish instead of the Hebrew text that is supposed to be in there, which looks like this:

™×•×˜×•×ª

How can I find the original encoding or charset and convert the text into proper Hebrew?

PHP's mb_detect_encoding($str); returns UTF-8

Tried all sorts of php encoding functions, with different settings and input/output charsets, but they all just print different looking gibberish blocks, like:

ÃâÃËÃâ¢Ãâ¢ÃËÃ

and

?? ×שמ×

...Any Ideas how to go about this?

© Stack Overflow or respective owner

Related posts about encoding

Related posts about hebrew