Thread: Printing Unicode characters

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    132

    Printing Unicode characters

    Hi, everyone. I've been searching for this, but I'm having some difficulties on finding it: how do I display Unicode characters in C in the Windows operating system? For example, I wanted to print the superscript 4, whose code is 2074, as is shown in http://www.unicode.org/charts/PDF/U2070.pdf. Thanks in advance!

  2. #2
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Look into wide chars (type wchar_t, and using wprintf to print).

    Useful link -> Wide-Character Functions : Wide Character Functions....Wide Character String....C Tutorial

  3. #3

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    132
    Thank you, both of you! =]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing Unicode to console
    By jw232 in forum Windows Programming
    Replies: 7
    Last Post: 02-22-2009, 10:41 PM
  2. Unicode 2 byte wide characters
    By davo666 in forum C Programming
    Replies: 18
    Last Post: 02-22-2009, 04:11 AM
  3. Printing with Unicode characters
    By chibisetsuna7 in forum C Programming
    Replies: 15
    Last Post: 06-19-2006, 10:26 PM
  4. printing non-ASCII characters (in unicode)
    By dbaryl in forum C Programming
    Replies: 1
    Last Post: 10-25-2002, 01:00 PM
  5. Reading Unicode characters
    By Troll_King in forum Windows Programming
    Replies: 0
    Last Post: 10-18-2001, 12:57 AM