LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   extended ascii codes in c++ (https://www.linuxquestions.org/questions/programming-9/extended-ascii-codes-in-c-362676/)

crAckZ 09-12-2005 11:12 AM

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?

addy86 09-12-2005 04:04 PM

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"? :confused:


All times are GMT -5. The time now is 04:36 AM.