Thread: Extended character ASCII in LINUX/WINDOWS

  1. #1
    Registered User
    Join Date
    Nov 2005

    Extended character ASCII in LINUX/WINDOWS


    I am writting C program under LINUX and I would like to know how to get extended character (beyond ASCII #127).

    I want to draw frame arround box but extended character are different between OS. For example these usefull character in windows UTF8 does not exist for linux:

    ASCII dec - ASCII hex - char
    179 0xB3 │
    196 0xC4 ─
    218 0xDA ┌
    192 0xC0 └
    191 0xBF ┐
    217 0xD9 ┘

    Also, I write the code under Windows then when viewing it under Linux all special character to print with printf() changed and become unreadable.

    Thank you

  2. #2
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    change your linux default charset to unicode, which is utf-8
    you are currently running iso8859-1 [ ascii ]
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  3. #3
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Still in the egg

    If you wanto to draw windows on screen use ncurses. "man ncurses" will give you enough information, i think!

    See the image below, if this is what you really want!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Character to Ascii
    By tdep in forum C Programming
    Replies: 6
    Last Post: 07-10-2006, 03:07 PM
  2. syntax error when defining vectors
    By starkhorn in forum C++ Programming
    Replies: 5
    Last Post: 09-22-2004, 12:46 PM
  3. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 05:32 PM
  4. fgetc() and TABS, Extended ASCII
    By eddiemjm in forum C Programming
    Replies: 2
    Last Post: 03-22-2004, 05:31 PM
  5. Replies: 1
    Last Post: 07-31-2002, 10:49 AM