User forums > Using Code::Blocks
Wrong file encode detected.
edison:
This is a bug which was existed long time ago.
test code:
--- Code: ---#include <stdio.h>
int main(void)
{
printf("Hello World! 测试");
return 0;
}
--- End code ---
[attachment deleted by admin]
stahta01:
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.
edison:
--- Quote from: stahta01 on October 15, 2014, 05:36:42 am ---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.
--- End quote ---
?
I have uploaded a screenshot which include notepad++ and CB open same file. The correct one is notepad++.
It is not a good solution that to choice bypass the encode dectect.
MortenMacFly:
--- Quote from: edison on October 15, 2014, 04:58:56 am ---This is a bug which was existed long time ago.
--- End quote ---
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...?!
My Settings are:
- Encoding: Windows 1252
- Use this encoding "as fallback"
- Try to detect...: OFF
- If conversion fails... : ON
However, are you sure you've saved your file in a proper file format like UTF-8?
edison:
I have created a video for demo this issue:
The CB was ran with default settings.
You can reproduce this problem via add language in Windows CP, it is Simplified Chinese(the code page should be Windows-936 or GBK or cp936) here.
Navigation
[0] Message Index
[#] Next page
Go to full version