I have a file that has chinese characters . I have written a java code that reads this file and write's to another file using FileInputStream/FileOutputStream (Byte Stream) and it's working fine . But problem is coming when i am using Character stream FileReader/FileWriter .
Now the question is that how come a byte stream that uses just eight bits able to read a chinese characters because what i know is that byte stream reads/writes one byte at a time and using one byte we can only recognise ASCII characters (i.e only 128 characters) . The character stream (FileReader/FileWriter) that uses 16 bits to read/write and has ability to read/write a chinese character is not able to read/write the file properly .