Printing Unicode characters

This is a discussion on Printing Unicode characters within the C Programming forums, part of the General Programming Boards category; Hi, everyone. I've been searching for this, but I'm having some difficulties on finding it: how do I display Unicode ...

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

    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
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,673
    If you are trying to do this on the console: how do i printf("") to the console?

    gg

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    114
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21