LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 11:12 AM   #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, 04: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:58 AM.

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
Open Source Consulting | Domain Registration