LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 09-12-2005, 12:12 PM   #1
crAckZ
Member
 
Registered: Sep 2004
Location: LOUISVILLE KENTUCKY
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 ?
Code:
#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, 05:04 PM   #2
addy86
Member
 
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"?
 
  


Reply


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 10:09 PM
RH9 - ASCII codes using alt-gr ? manub Red Hat 0 03-14-2004 05:24 AM
alt-gr ASCII codes don't work ? manub Linux - Newbie 0 03-13-2004 07:05 PM
ASCII Codes in linux slackmagic Linux - Newbie 2 12-22-2003 10:25 AM
Sending ascii codes with minicom ganninu Linux - Software 0 08-27-2003 09:01 AM


All times are GMT -5. The time now is 08:52 PM.

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