> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Werner Dang
> Sent: Saturday, March 23, 2002 6:40 AM
> To: dev...@li...
> Subject: [Dev-C++] French diacritic caracters
>=20
>=20
> Hello All,
> How can I display French diacritic caracters in console mode=20
> like '=E9, =E0, =E8, ... with printf()? I am under Windows NT4.=20
> When I type this caracteres it's ok! Thanks for your help Werner
If they are stored in extended ASCII mode then you will use unsigned
char type and print character by character as an unisgned char. If
French are not in extended ASCII you will use wchar_t type. wchar_t is
defined in stdef.h .
A normal string can be treated as a wchar_t type in the style:
L"This is a wide character string".=20
But usually the western languages fit in the extended ASCII.
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|