Extended character ASCII in LINUX/WINDOWS

This is a discussion on Extended character ASCII in LINUX/WINDOWS within the Linux Programming forums, part of the Platform Specific Boards category; Hello, I am writting C program under LINUX and I would like to know how to get extended character (beyond ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    20

    Extended character ASCII in LINUX/WINDOWS

    Hello,

    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 ┘
    etc...

    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
    Posts
    416
    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
    Location
    Still in the egg
    Posts
    269
    Hi

    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!

    http://www4.gantep.edu.tr/~fni18444/p1.png

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, 04:32 PM
  4. fgetc() and TABS, Extended ASCII
    By eddiemjm in forum C Programming
    Replies: 2
    Last Post: 03-22-2004, 04:31 PM
  5. Replies: 1
    Last Post: 07-31-2002, 10:49 AM

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