This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Windows Unicode and GCC
- From: Mike Hearn <mike at plan99 dot net>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 25 Apr 2006 11:21:08 +0100
- Subject: Re: Windows Unicode and GCC
- References: <444D268B.6030600@sand.com>
On Mon, 24 Apr 2006 15:27:07 -0400, Nicolas De Rico wrote:
> I would like to compile files created on Windows and encoded in
> "Unicode" (UTF-8 or UTF-16). Microsoft puts a little header at the
> beginning of files to indicate that they are UTF-16, UTF-8, etc. I
> believe that this header is standard unicode btw, not an extension!
Are you thinking of the byte order mark (BOM)? If so then this is a quirk
of UTF-16 and is a Windows thing that many apps can't handle correctly ...
UTF-8 should not have any headers at all and GCC should handle them fine.
Try using some text editor to check it really is UTF-8.
thanks -mike