Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-12-2005, 11:12 AM   #1
Registered: Sep 2004
Distribution: mandriva 2006
Posts: 155

Rep: Reputation: 30
extended ascii codes in c++

afternoon all.
how can i use extended ascii code in my c++ project ?
#include <iostream>
using namespace std;

    int main()
              unsigned char ch;
              char = 128;
               while(ch)   {
                                    cout<< ch;
                                    ch ++;
      return 0;
is there a wrapper or any way to use them in a tcp application?
Old 09-12-2005, 04:04 PM   #2
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Does it not work? You also need a terminal (emulator) which supports an encoding other than ASCII (like UTF-8), and is also configured to interpret the byte data correctly (if you output ISO-8859-1, but the terminal expects UTF-8, you won't get useful results).

What is a "tcp application"?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6 and Extended Keyboard Codes davecs Linux - Hardware 1 05-30-2004 09:09 PM
RH9 - ASCII codes using alt-gr ? manub Red Hat 0 03-14-2004 04:24 AM
alt-gr ASCII codes don't work ? manub Linux - Newbie 0 03-13-2004 06:05 PM
ASCII Codes in linux slackmagic Linux - Newbie 2 12-22-2003 09:25 AM
Sending ascii codes with minicom ganninu Linux - Software 0 08-27-2003 08:01 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration