Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Loaden on August 06, 2008, 04:14:20 am

Title: support add BOM in UTF-8 or UTF-16 files?
Post by: Loaden on August 06, 2008, 04:14:20 am
I post this question in :https://developer.berlios.de/bugs/?func=detailbug&bug_id=14332&group_id=5358 (https://developer.berlios.de/bugs/?func=detailbug&bug_id=14332&group_id=5358)

I hope CB term can support add BOM into UTF-8 or UTF-16 files, because i use VC2003 on Windows OS, and GCC on Linux OS. if don't have BOM, VC2003 can't support UTF-8 format files.
and if include chinese code, it's can't show correct in different OS.
Title: Re: support add BOM in UTF-8 or UTF-16 files?
Post by: Loaden on August 07, 2008, 05:06:14 am
Have you tried Edit > File encoding > Save byte-order-mark (BOM) option?? C::B is not as dumb as you think.
Thanks!

But itt's can't auto complete.
Have some settings set this option to default enable?

If i have a project, and the project include many files with 'Windows 936' encoding. now i want convert to 'UTF-8' and with BOM write, now, i can do it only one by one.

I hope CB have a option: if save or create a file, it's can auto write BOM.