User forums > Help

[Solved] EDIT cpp Chinese garbled!~!~!~!~

(1/2) > >>

lfjking:
Environment: X64 window Chinese
IDE:codeblocks 16.01

IDE encoding settings:
Compiler settings - >
Global compiler Settings - > 
Compiler settings - >
Other compiler options: 
-finput-charset=GBK
-fexec-charset=GBK

Question:
The same project, after a period of normal compilation of code, the code can not be converted to a puzzling problem
Then the CodeBlocks Editor could not see the contents of the.Cpp.
But with other text editor to open can see, but the inside of the Chinese code display is garbled
Seek solution

BlueHazzard:
Do you talk about, that your program does not show the text correctly or do you talk about codeblocks does not show the code correctly?

About the first this is the wrong forum to ask this...

About the second: Edit -> File encoding->Set the correct encoding

lfjking:
The question is:
build error:  failure to convert GBK to UTF-8
 

lfjking:
All right. This is CODEBLOCKS's question all the time.
I rebuilt the document.
Although it is time to compare
It is much simpler than looking for the problem.
However, the next version of CODEBLOCKS is not a good adjustment of this problem should be adjusted

please lock it.

stahta01:

--- 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 [likely] 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.

Navigation

[0] Message Index

[#] Next page

Go to full version