Re: [Dev-C++] National character sets
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: lstar36 <ls...@fl...> - 2000-11-12 03:04:09
|
Stdin functions are base on the ANSI code. You have done the correct thing
to write a conversion function to change to scandinavian.
----- Original Message -----
From: "Anders Nilsson" <a.n...@de...>
To: <dev...@li...>
Sent: Saturday, November 11, 2000 8:57 AM
Subject: [Dev-C++] National character sets
> Hi!
>
> How can I change to another character set? When I use cout to write
scandinavian characters they are replaced by other characters. Now I use
this function but there must be a better way.
>
> int ConvertToExtendANSI(int kod)
> {
> if (kod == -59)
> return (143);
> if (kod == -60)
> return (142);
> if (kod == -42)
> return (153);
> return (kod);
> }
>
> Thanks for many interesting questions and answers in this mailing list!
>
> Anders
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|