User forums > Help
utf-8 not working????
BlueHazzard:
http://forums.codeblocks.org/index.php/topic,22168.msg150872.html#msg150872
nykS:
--- Quote from: oBFusCATed on November 20, 2018, 07:16:29 pm ---
--- Quote from: nykS on November 20, 2018, 04:21:04 pm ---But when I compile it shows me "╬รถ" instead of "Δ", why?
--- End quote ---
Where does it show it? Do you use the same font in the two places? Have you told the compiler that your source files are in a specific encoding. If you want to enter specific characters it is probably most reliable if you enter unicode values directly using \x, \u, \U or something similar.
https://stackoverflow.com/questions/6796157/unicode-encoding-for-string-literals-in-c11
I'm not expert, you'll have to search for more information how to solve your problem...
--- End quote ---
How can I use the same font in console ? How I tell to the compiler ? \x, \u, \U not working...
--- Quote from: BlueHazzard on November 20, 2018, 07:27:13 pm ---http://forums.codeblocks.org/index.php/topic,22168.msg150872.html#msg150872
--- End quote ---
Image
BlueHazzard:
I think you have not changed the font in the console...
Step 3 in my description
BlueHazzard:
You also did not saved your document in UTF-8, as described in the error message on the right bottom.
Save the file as UTF-8 with Edit->File encoding->UTF-8
Navigation
[0] Message Index
[*] Previous page
Go to full version