6 Replies - 835 Views - Last Post: 24 May 2009 - 01:07 AM Rate Topic: -----

#1 FaceOfGod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 18-May 09

How to compile cyrilic words

Posted 18 May 2009 - 07:21 AM


Hi, me again. I'm from Bulgaria and I really want to know how to compile cyrillic words on C programs , because if I do it normally:
 printf("Това е кирилица"); 

and something like this is shown: ^%$@!#%#!#^%^%# and other.
Please help me!


Is This A Good Question/Topic? 0
  • +

Replies To: How to compile cyrilic words

#2 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: How to compile cyrilic words

Posted 18 May 2009 - 05:36 PM

You can use Unicode to display locale specific characters for a bunch of different languages.

This is a thread I found on Google which may be of some help to you.
Was This Post Helpful? 0
  • +
  • -

#3 FaceOfGod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 18-May 09

Re: How to compile cyrilic words

Posted 19 May 2009 - 10:22 AM

View Posterik.price, on 18 May, 2009 - 04:36 PM, said:

You can use Unicode to display locale specific characters for a bunch of different languages.

This is a thread I found on Google which may be of some help to you.

Dude, it helped in only telling me that i need to use Unicode, but how can I write it in a C program?
I just can't understand how.
Thanks though, but if you can tell me how to do it i'll be much more thankful.
Was This Post Helpful? 0
  • +
  • -

#4 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: How to compile cyrilic words

Posted 20 May 2009 - 02:39 AM

Have a look here
http://www.ibm.com/d...ibrary/l-u-cyr/
Was This Post Helpful? 0
  • +
  • -

#5 FaceOfGod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 18-May 09

Re: How to compile cyrilic words

Posted 23 May 2009 - 01:21 PM

Still, man how can I transform the code you showed me into C code? I mean I didn't understand a thing from that code..
Was This Post Helpful? 0
  • +
  • -

#6 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: How to compile cyrilic words

Posted 23 May 2009 - 04:50 PM

Show us some code trying to use Unicode and we can help you make it better.

It doesn't matter if your code doesn't work.

Just show us your best effort so far.
Was This Post Helpful? 0
  • +
  • -

#7 FaceOfGod  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 18-May 09

Re: How to compile cyrilic words

Posted 24 May 2009 - 01:07 AM

Well, my best effort so far was using a WinApp to compile the program in a regular window but it is really a heavy masochism. Although this way I don't even need to tell the compiler that I'll be using Unicode, because Windows windows normally have it . And if my program won't be in a winapp i don't have a clue how to do it.
i thought that
#include <whatever the hell file with whatever the hell libraries>
and after that
something like
LIB_Utf8_UNICODE =RUSSIAN(or Bulgarian) or whatever
and the compiler blows out a million errors.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1