User forums > Help
[Solved] EDIT cpp Chinese garbled!~!~!~!~
lfjking:
--- Quote from: stahta01 on December 11, 2016, 08:50:30 pm ---
--- Quote from: lfjking on December 11, 2016, 07:47:40 pm ---The question is:
build error: failure to convert GBK to UTF-8
--- End quote ---
This is a Compiler error; NOT an Code::Blocks error!
Edit: No Idea if the normally suggested work around of using UTF-8 in the source code will work for Chinese.
But, if it does NOT then you need to find an Compiler the works with your GBK sourcecode.
Tim S.
--- End quote ---
I want to get rid of the unnecessary trouble.
So you can use system UTF-8 under window
Compile will go wrong...
Since it's GCC's fault.
Whether to provide a CodeBlocks conversion tool to match well
To know the code is different
Copy is a luxury
stahta01:
--- Quote from: lfjking on December 11, 2016, 09:14:03 pm ---
--- Quote from: stahta01 on December 11, 2016, 08:50:30 pm ---
--- Quote from: lfjking on December 11, 2016, 07:47:40 pm ---The question is:
build error: failure to convert GBK to UTF-8
--- End quote ---
This is a Compiler error; NOT an Code::Blocks error!
Edit: No Idea if the normally suggested work around of using UTF-8 in the source code will work for Chinese.
But, if it does NOT then you need to find an Compiler the works with your GBK sourcecode.
Tim S.
--- End quote ---
I want to get rid of the unnecessary trouble.
So you can use system UTF-8 under window
Compile will go wrong...
Since it's GCC's fault.
Whether to provide a CodeBlocks conversion tool to match well
To know the code is different
Copy is a luxury
--- End quote ---
This site does NOT support any Compiler.
This site support only the Code::Blocks IDE.
Confirm it is a Compiler error on the command line; then if yes, look for another Compiler.
Or if you confirm it is NOT a compiler error, post more information in this thread.
If you think it is a Code::Blocks error, you need to post information on how to duplicate the problem for any chance that it will get fixed.
Tim S.
lfjking:
--- Quote from: lfjking on December 11, 2016, 07:47:40 pm ---
This site does NOT support any Compiler.
This site support only the Code::Blocks IDE.
Confirm it is a Compiler error on the command line; then if yes, look for another Compiler.
Or if you confirm it is NOT a compiler error, post more information in this thread.
If you think it is a Code::Blocks error, you need to post information on how to duplicate the problem for any chance that it will get fixed.
Tim S.
--- End quote ---
Now I'm the way to solve the EideCode code is all changed to UTF-8
And then the project of all the documents encoded into UTF-8
All string plus _T
--- Code: ---//Other compiler options:
-finput-charset=UTF-8
-fexec-charset=UTF-8
Encoding settings->use encoding when opening files: UTF-8
--- End code ---
now , it can be successfully compiled successfully
Thank you
Navigation
[0] Message Index
[*] Previous page
Go to full version