Error Reading a source file: (UTF-16 Big Endian without BOM)

Started by benjaminmaggi, April 19, 2008, 10:00:52 AM

Previous topic - Next topic

benjaminmaggi

While working on a project I discover that PellesC V5.0.0.4 Could not load one of my project files.
This particular source file is encoded with UTF-16 Big Endian whitout BOM mark.
The Application did not crash but warn me with a message.
I did check to see which code pages are supported by PellesC IDE:


  • ANSI
  • OEM
  • UTF-16 LE
  • UTF-8
  • UTF-8 no BOM

Is it possible to add support for UTF-16 BE with or without BOM ?  ::)

Pelle

Anything is possible, it's more a matter of importance. I may be wrong, but I'm not sure there are that many UTF-16 BE files floating around on Windows machines. Requiring a BOM in the C compiler, the resource compiler, and several other tools, simplifies the input code considerably. Possibly I could add UTF-16 BE (and more) to the IDE, so it would at least be possible to resave the file in a 'compiler friendly' encoding...
/Pelle