User forums > Help

Is it possible to add a new codepage?

(1/4) > >>

coditoter:
Hello geeks!
I'm writing in help because I think that the problem should be there but it can be also put in new feature or sth like that subforum.
Well, the problem is quite simply. Windows console uses code page 852 or (it is also named OEM 852). You can not care it if you're an Englishman but ... I'm in Poland and if i use my special characters like "ąęźć..." I see strange characters. So, I must use also that code page  in C::B editor. Unfortunately, nowadays it's not supported. Is it possible to add that code page do C::B editor because I don't want to use Notepad++ to change code page, then compile, edit file, then change... you know. I cross compile to windows using linux but the problem also exists on windows.
Really thanks for answer. I think that the solution should be quite easy ;).

BlueHazzard:
use utf8....
http://forums.codeblocks.org/index.php/topic,18803.msg128791.html#msg128791

coditoter:
But that's nonsense. Why have I to use UTF-8, avoid cin & cout, change too many things ... if the best solution is to change code page?
That solution works perfectly and I only want to use new code page (Windows default) - OEM 852 in C::B. Is it REALLY hard to add it?

stahta01:

--- Quote ---Windows console uses code page 852 or (it is also named OEM 852)
--- End quote ---

Install scintilla is the codepage supported? If not, it is unlikely CB will support it.

http://sourceforge.net/projects/wxscintilla/

The CB editor is a modified version of a wxscintilla.

Tim S.

stahta01:
The only related source file(s) that I found was editorconfigurationdlg.cpp and editor_configuration.xrc.

Note, backup the the file before trying to edit; note: CB must be closed while editing.
Editing the conf files is NOT recommended as a safe way to do changes.
The list appears to NOT be in the CB source file; so, I am guessing it is Operating System supplied.

I am NOT a CB Developer; this is NOT a safe thing to do (Edit the conf file).

Found in Windows CB default.conf file.

--- Code: --- <DEFAULT_ENCODING>
<str>
<![CDATA[WINDOWS-1252]]>
</str>
</DEFAULT_ENCODING>

--- End code ---

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version