NO

Author Topic: Error Reading a source file: (UTF-16 Big Endian without BOM)  (Read 2769 times)

benjaminmaggi

  • Guest
Error Reading a source file: (UTF-16 Big Endian without BOM)
« on: April 19, 2008, 10:00:52 AM »
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 ?  ::)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Error Reading a source file: (UTF-16 Big Endian without BOM)
« Reply #1 on: April 20, 2008, 04:07:37 PM »
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