Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith and utf8

<< < (2/2)

rjmyst3:

--- Quote from: Biplab on March 04, 2008, 12:01:48 pm ---
--- Quote from: normunds on March 04, 2008, 08:40:34 am ---The problem is that I can't understand myself the system when it happens. Usually when I'm creating new Panel, it is in Windows-1257 code page, but not always. I'm using non-ascii characters in label captions, so there is impossible to compile project (wxWidgets is in Unicode mode). So I'm changing those files manually to UTF8, but sometimes CodeBlocks is changing files back to Windows-1257 by saving.
I started developing my project in Linux but now continue in WinXP. Some of project files are in DOS some in UNIX format. All .wxs files are UTF8 and UNIX. There is no problems with my other projects, but I didn't use non-ascii characters before. All files in my other projects are in UTF8 format.

--- End quote ---

My guess, you are saving the file in UTF-8 without BOM. Thus if there is no Non-ascii characters in your file, your file would look like a normal ASCII file. There C::B fails to recognise your file as UTF-8 encoded one.

Try saving the file with BOM, i.e. UTF8+BOM. That should help C::B recognise UTF-8 encoded files more easily. :)

--- End quote ---

Be careful with the BOM, last time I tried it, GCC failed to compile with warnings like "stray character in file ..."

Navigation

[0] Message Index

[*] Previous page

Go to full version