Locale table for Windows

K

Klaus Gr?nb?k

Hi all
Im from Denmark and we have a few charcters in our alphabet that are
not standard ASCII (æåøÆÅØ). I want to be able to print these
characters to the console, but for that i need to imbue cout with a
new locale. Currently I am unable to find a list of valid locale
strings.
The example in documentation is this: locale::global(locale("Fr_CH"));
I found some C documentation that had : setlocale(LC_ALL,
"da_DK.iso88591"); But I dont think the C and C++ locals are
compatible.
I use Borland Builder 5.0 build in c/c++ compiler on a windows 2000
platform.
/Klaus
 
M

Mike Wahler

Klaus Gr?nb?k said:
Hi all
Im from Denmark and we have a few charcters in our alphabet that are
not standard ASCII (æåøÆÅØ). I want to be able to print these
characters to the console, but for that i need to imbue cout with a
new locale. Currently I am unable to find a list of valid locale
strings.
The example in documentation is this: locale::global(locale("Fr_CH"));
I found some C documentation that had : setlocale(LC_ALL,
"da_DK.iso88591"); But I dont think the C and C++ locals are
compatible.
I use Borland Builder 5.0 build in c/c++ compiler on a windows 2000
platform.
/Klaus

The specific string(s) used to specify a locale are implementation
dependent. Consult your OS and/or implementation documentation.

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top