Problem opening UTF-16 encoded files

I have some XML files that are actually saved in UTF-16LE encoding. When I attempt to open the files using IDEA 6.0.2, IDEA doesn't notice that the file is UTF-16 and displays the contents of the file "spread out* (each character is shown as ]]>). It makes no difference to IDEA whether or not the Byte Order Mark (0xFFFE) is in the file or not (I've tried both ways).

The "File Encoding" settings in IDEA are "Default Encoding: System Default" and "Autodetect UTF-encoded files" is checked. My OS is Windows XP Professional w/SP2.

Anyone have any ideas? (Even Windows NOTEPAD can deal with the file.)

Clifford

1

请先登录再写评论。