3fb Subj : Re: Swedish characters To : borland.public.cpp.borlandcpp From : maeder@glue.ch (Thomas Maeder [TeamB]) Date : Sat Oct 11 2003 10:34 am "Taras Kentrschynskyj" writes: > maeder@glue.ch (Thomas Maeder [TeamB]) wrote: > >The text editor and the program generated by gcc seem to use Latin-1, while > >the program generated by bcc uses Codepage 850. Since the character literals > >are Latin-1 encoded, they aren't correctly treated. > > OK, thank you. But can you force bcc to use another character set than > cp850? I've tried the setlocale function, without success, though... AFAIK, the locale related functionality of Standard C and Standard C++ only affect how characters read from files are treated. Since the program generated by Borland C++ treats these correctly, I don't think that changing the locale settings will help you. I don't know if you can change the encoding Borland C++ assumes character literals to have. Maybe somebody else can help here? . 0