News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Cannot compile UTF-8 source

Started by larryli, March 05, 2008, 05:56:39 PM

Previous topic - Next topic

larryli

I save the source file as utf-8(no BOM) encoding with chinese charactor. The error message is:
D:\Projects\src\package.c(1): fatal error #1065: Failed converting input using codepage 936.
But I do not want converting.

Pelle

The IDE can handle UTF-8 files without a BOM, but the compiler and most other tools require a BOM (for now at least - this is a work in progress, and may change in the future).
/Pelle

zrj99

Just insert some comment line before first line, it's may be OK.