What are \xHEX characters and is there a table for them?
Question: When reading a textfile, I read these characters, when printed out to console
it outputs blanks or �:

    
    
    ['\x80', '\xc3', '\x94', '\x99', '\x98','\x9d', '\x9c', '\xa9', '\xa6', '\xe2']
    

What are these \xHEX characters? Is there a link to the table to lookup these
characters?

**SOLVED:**

it's not an `ascii` textfile, it was a unicode `utf8` file. That was why I was
unable to get correct the characters.

For Java:

    
    
    import java.io.*
    File infile = new File('\home\foo\bar.txt');
    BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(infile), "UTF8"));
    while ((str = in.readLine()) != null) {
    System.out.println(str);
    }
    

if `system.out.println` complains try:

    
    
    PrintStream out = new PrintStream(System.out, true, "UTF-8");
    out.println(str);
    

For Python, simply:

    
    
    import codecs
    infile = '\home\foo\bar.txt'
    reader = codecs.open(infile,'r','urf8')
    for l in reader:
      print ln
    


Answer: Here is a link to all unicode characters:

<http://en.wikipedia.org/wiki/List_of_Unicode_characters>

Also, if you are using Eclipse, make sure your project "Text File Encoding" is
set to UTF-8.

**Project->properties->resources->Text File Encoding.**

I had similar problem with cyrillic characters :)

