From: Derek C. <de...@ci...> - 2010-09-13 11:54:01
|
The characters that you actually get will depend upon the code page installed on your particular machine and the font currently in use. A FAR better way to get general language support is to use Unicode. That way a certain character code always means the same character! The snag is that the characters are 4 bytes long instead of 1. Look at http://evanjones.ca/unicode-in-c.html Another reference I just found is rather more scientific about this issue: http://www.linuxselfhelp.com/gnu/glibc/html_chapter/libc_6.html <http://www.linuxselfhelp.com/gnu/glibc/html_chapter/libc_6.html>This should apply to Dev-C++ as gcc is used as the compiler. On 13 September 2010 12:28, Filip Palle <fil...@ya...> wrote: > > Hey to all,I have huge problem which,I'm sure,has a simple solution. :) > > I'm having trouble displaying croatian letters in printf line.. Since i > cannot write letter č or š or đ etc directly (because all i get are strange > signs),i have to do it through ANSII codes..which for letter č is 159 (I > think). > > printf("Upi%ci re%cenicu:\n",sh,ch); //*"Upiši rečenicu" means basically > "write a sentence" ;) *// > gets(rec); ... > > in which ch=159 and sh=231. > This used to work year ago when i was doing this for something,and now even > that won't work and I don't know why... So do I have to do something in the > options tab? I don't get it why it wont accept not even here or in terminal > these letters.. > > Thx alot. > Winxp,devcpp 4992. > > Filip. > > > > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |