Author Topic: Simple C language code issue  (Read 6210 times)

Offline Rajai

  • Single posting newcomer
  • *
  • Posts: 3
Simple C language code issue
« on: May 31, 2014, 05:40:25 pm »
How can I print foreign characters on the screen using C in code blocks? Here's my code, which doesn't work:

#include <stdio.h>
#include <locale.h>

int main(){

setlocale(LC_ALL,"Turkish");

printf("İ ş ğ ı");

system("pause");
return 0;
}

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2379
Re: Simple C language code issue
« Reply #1 on: June 01, 2014, 11:07:38 am »
This is not a C::B development question. This has nothing to do with c::b in any way...
this is a general unicode -c question, and so here (in the whole forum) is the wrong place to ask such questions...

A moderator will lock this topic.

you can try this, but don't ask here for more help: http://forums.codeblocks.org/index.php/topic,18803.msg128791.html#msg128791

Offline Rajai

  • Single posting newcomer
  • *
  • Posts: 3
Re: Simple C language code issue
« Reply #2 on: June 03, 2014, 12:26:22 am »
calm down.. nobody is freakin answering that anyway..

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6551
    • My Best Post
Re: Simple C language code issue
« Reply #3 on: June 03, 2014, 01:12:21 am »
calm down.. nobody is freakin answering that anyway..

Learn to read the rules before posting on a Web Forum http://forums.codeblocks.org/index.php/topic,9996.0.html

Learn to read the replies to your posts.

Learn to read the description of the sub-forum you post in!!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Rajai

  • Single posting newcomer
  • *
  • Posts: 3
Re: Simple C language code issue
« Reply #4 on: June 03, 2014, 11:14:04 am »
i asked the same question in stackoverflow and they were able to get my code working right but i wasnt able to do that because of my CB setting, my way of asking the question was wrong but there's no need to talk that way, calm down people!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6551
    • My Best Post
Re: Simple C language code issue
« Reply #5 on: June 03, 2014, 12:47:13 pm »
i asked the same question in stackoverflow and they were able to get my code working right but i wasnt able to do that because of my CB setting, my way of asking the question was wrong but there's no need to talk that way, calm down people!

So, you still can NOT read and comprehend what you read; I pity you.

Tim S.
« Last Edit: June 03, 2014, 02:08:34 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org