User forums > Help
Is it possible to add a new codepage?
stahta01:
I think I found the source of the list "wxFontEncoding".
I suggest building "wxWidgets/samples/font" is the font listed in the sample?
If not, it is likely an issue on your PC or in wxWidgets.
Edit2: I would guess it is a wxWidgets lack of support issue. But, I can not test it since I do NOT have that font on my PC.
Edit3: I would guess the lack of being listed in wxWidgets's common/fmapbase.cpp file is the likely cause of CB not listing it.
Tim S.
Jenna:
--- Quote from: stahta01 on July 19, 2014, 03:46:12 pm ---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.
--- End quote ---
It's a wxWidgets list, if I recall correctly, so changing the conf-file will not work and probably lead to crashes.
What about iso8859-2 (latin-2) ?
coditoter:
I tried iso8859-2 but it's not working correctly... generally, it's nosense to use other code page that OEM 852 because MS Console uses it (and wine implementation too probably). So it would be great upgrade 4 Win coders to use Win console code page :D.
stahta01:
--- Quote from: coditoter on July 19, 2014, 06:14:45 pm ---I tried iso8859-2 but it's not working correctly... generally, it's nosense to use other code page that OEM 852 because MS Console uses it (and wine implementation too probably). So it would be great upgrade 4 Win coders to use Win console code page :D.
--- End quote ---
I gave you enough info; now do some work or shut-up!
Tim S.
BlueHazzard:
--- Quote from: stahta01 on July 19, 2014, 06:16:54 pm ---
--- Quote from: coditoter on July 19, 2014, 06:14:45 pm ---I tried iso8859-2 but it's not working correctly... generally, it's nosense to use other code page that OEM 852 because MS Console uses it (and wine implementation too probably). So it would be great upgrade 4 Win coders to use Win console code page :D.
--- End quote ---
I gave you enough info; now do some work or shut-up!
Tim S.
--- End quote ---
don't be this rude... jens mentioned that this is a wxWidgets issue and can't be changed that easy...
@oditoter
There are many good reasons to NOT use the win default code page
And there are twice as much reasons to use utf8 (the windows console is a relict from win16 time, and windows should be forced to implement a new console with utf8...) you can read here some statements: http://utf8everywhere.org/
--- Quote from: coditoter on July 19, 2014, 02:23:49 pm ---But that's nonsense. Why have I to use UTF-8, avoid cin & cout, change too many things ...
--- End quote ---
The nonsense here lays on Microsoft site... If you want code platform independent (as you mentioned earlier) then the easiest way is my approach, and then you have really Unicode support, and not this pseudo implementation from Microsoft... not use cin and cout are the lowest problem you will heave...
BUT if you find some way to set a new codepacge or any other way to successfully use unicode in the windows console, i would really be happy if you can post your solution here!!!!
greetings
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version