Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

printing Arabic Language Characters on CMD screen

printing

  • Please log in to reply
3 replies to this topic

#1 Nasief

Nasief

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 09 March 2011 - 01:43 AM

Hi guys,
this is my first thread on this forum, and I am really happy to join.
Well, I have a data structures project, and we are required to print arabic language characters on the cmd screen.I fouund a library for unicode but i don't know how to use it. am so thankful for any help.
  • 0

#2 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 09 March 2011 - 01:30 PM

What library did you find? Have you tried using just straight UTF-8 for this? You can look up the Arabic script character codes on the www.unicode.org.
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'


#3 Alexander

Alexander

    YOL9

  • Moderator
  • 3963 posts
  • Location:Vancouver, Eh! Cleverness: 200
  • Programming Language:C, C++, PHP, Assembly

Posted 09 March 2011 - 05:35 PM

To place in to unicode mode (Windows utilises UTF-16 by default)
cmd /U

Windows or Linux: Then use standard wchar_t / wprintf or wcout commands.
  • 0

All new problems require investigation, and so if errors are problems, try to learn as much as you can and report back.


#4 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 09 March 2011 - 05:42 PM

Is this for Windows?
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download