C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-24-2006, 07:29 AM   #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
intmail is offline   Reply With Quote
Old 01-24-2006, 08:20 AM   #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.
Jaqui is offline   Reply With Quote
Old 01-26-2006, 03:24 PM   #3
Just kidding....
 
fnoyan's Avatar
 
Join Date: Jun 2003
Posts: 223
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
fnoyan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Character to Ascii tdep C Programming 6 07-10-2006 03:07 PM
syntax error when defining vectors starkhorn C++ Programming 5 09-22-2004 12:46 PM
Character handling help vandalay C Programming 18 03-29-2004 05:32 PM
fgetc() and TABS, Extended ASCII eddiemjm C Programming 2 03-22-2004 05:31 PM
How do I take an ascii character and print out the hex equivalent? Big Indian C Programming 1 07-31-2002 10:49 AM


All times are GMT -6. The time now is 08:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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