neil9999
08-20-2007, 04:23 AM
Hi,
I am trying to convert the contents of a UCS-2LE encoded file into UTF-8. When I use file_get_contents directly, I get a � replacement character before every other character. If I use mb_convert_encoding($file,"UCS-2LE","UTF-8"), there are 3 replacement characters before every other character. If I use mb_detect_encoding, it fails to detect the encoding.
I have attached one of the files.
Thanks in advance,
Neil
I am trying to convert the contents of a UCS-2LE encoded file into UTF-8. When I use file_get_contents directly, I get a � replacement character before every other character. If I use mb_convert_encoding($file,"UCS-2LE","UTF-8"), there are 3 replacement characters before every other character. If I use mb_detect_encoding, it fails to detect the encoding.
I have attached one of the files.
Thanks in advance,
Neil