User forums > Using Code::Blocks
How to manage OEM 866 encoding
Xavier65:
Hello!
I bought Stephen Prata's sixth edition of "C Primer Plus", and I love this book. In all programs all the input/output data is translated into Russian. Russian looks fine in the editor built into CodeBlocks. However, when I run a console app, I see abracadabra instead of nice Cyrillic symbols. It is said that Windows 866 encoding is needed, but it's not present in the editor drop-down list in settings. If I somehow manage to add Windows 866 to the editor (add it to the config file as suggested in some "clever" Bjarne Stroustrup book), the console app shows Cyrillic OK, but I type abracadabra in the editor.
I read a lot of suggestions for this problem, but they all seem awkward and not easy to use. In the attached screenshots you can see what my fellow guru 8) programmer did. It works, but it is kinda not what I'd want to do.
Please help! It is strange this matter hasn't been brought up, at least I couldn't find anything using search. Could only attach two pictures, the third that didn't go through showed str.h open in Notepad++ with OEM 866 encoding.
BlueHazzard:
http://forums.codeblocks.org/index.php/topic,18803.msg128791.html#msg128791
even better:
http://forums.codeblocks.org/index.php/topic,22168.msg150872.html#msg150872
BlueHazzard:
Why do you hitchhike a other topic?
What is wrong with the suggested solution?
Codepages are a old concept that Microsoft suggest to no use them anymore....
As far as i can tell codeblockls lists all available codepages on your system. If cp 866 is not listed your system does not supports it...
Does notepad++ lists the cp 866?
Xavier65:
I hitchhike another topic, 'cause the search did not return any results for OEM 866 or 866 or 866 encoding. This topic was created BEFORE I was aware there were the other two topics.
The solution doesn't work. Both of them.
The Notepad++ lists 866. Besides (the most important reason) the console lists OEM 866 as encoding in its properties.
BlueHazzard:
--- Quote ---The solution doesn't work. Both of them.
--- End quote ---
Does not work is not a adequate answer to help you. Describe your problem and we might be able to help. The other two theards where able to use this solution...
--- Quote ---The Notepad++ lists 866
--- End quote ---
Try again in codeblocks. For me it displayed it after i selected it in notepad++. I don't know why, but now it is shown in the drop down list. I still think this is a windows thing...
Navigation
[0] Message Index
[#] Next page
Go to full version