Burak <bu***********@gmail.comwrites:
i'll try to explain my problem shortly...
char wrt[50];
char word[50];
strcpy(wrt,"şç");
printf("%s\n",wrt);
//i get â–* as output
gets(word); //i will write şç
printf("%s \n",word);
//output of this is correct,şç
How can i solve this?
These things are very hard to debug over Usenet. I can not be sure of
what you have in your C file or in your output since simply copying
into a message can change the character encoding.
Any suggestions?
Best guess: the program you use to type in your C code uses a
different character encoding from the terminal/console you run it on.
To get a better-informed guess, ask in a group that knows about your
development environment.
--
Ben.