[GRASS-dev] fonts and character encoding

Paul Kelly paul-grass at stjohnspoint.co.uk
Sun May 13 17:47:40 EDT 2007

On Sun, 13 May 2007, Michael Barton wrote:

>> You can get the Windows
>> codepage by parsing the output from "mode con cp /status", although
>> there might be better solutions. iconv appears to accept cp??? for
>> most of the common ones (e.g. cp437 = US, cp850 = western Europe,
>> etc).
> Sorry to bother, but how can I get this information from within TclTk or
> wxPython?

Well on my Windows system the output from running "mode con cp /status" 

Status for device CON:
     Code page:      850

That includes one blank line beforehand and two afterwards, if it makes 
any difference to the parsing if you're going about it that way.


More information about the grass-dev mailing list