#include <stdio.h>
int main(void)
{
printf("Hello World! 测试");
return 0;
}
I suggest posting a link to the file or attaching the file.
Also state the correct encoding and the wrong encoding value detected.
NOTE: If this is a program run-time issue search for the solution because it is NOT a CB issue.
It is posted somewhere on this board.
Tim S.
This is a bug which was existed long time ago.Sorry, but I can't reproduce. I've created a new file "main.c" copied/pasted your code snippet into it and it just looks exactly like in the forums and notepad...?!
I have created a video for demo this issue:I've seen this video. I am asking again:
However, are you sure you've saved your file in a proper file format like UTF-8?From your video it seems not. Strange is also that you are not being warned about that issue. Usually C::B does so.
From your video it seems not. Strange is also that you are not being warned about that issue. Usually C::B does so.I had uploaded another video which show CB can not correctly detect the utf-8 file that save by itself:
I had uploaded another video which show CB can not correctly detect the utf-8 file that save by itself:Well what happens is perfectly OK. As you create an UTF-8 w/o BOM and have setup windows-936 as default encoding it will be used when opening the file. There is no way you can distinguish exactly between UTF-8 and windows-936 in case you've only ANSI characters in the file.
https://vimeo.com/109202854
I had uploaded another video which show CB can not correctly detect the utf-8 file that save by itself:Well what happens is perfectly OK. As you create an UTF-8 w/o BOM and have setup windows-936 as default encoding it will be used when opening the file. There is no way you can distinguish exactly between UTF-8 and windows-936 in case you've only ANSI characters in the file.
https://vimeo.com/109202854
So either you use UTF-8 with BOM or start just coding your Korean (whats-o-ever) stuff into the file. :)
...not to forget that another perfect solution is to use a file with bom if the target compiler supports this.