unicode - char taken from .csv file edit problem java -


i have problem....

i made java program following:

bufferedreader  input = new bufferedreader(new filereader("test.csv")); string line = input.readline(); int lenghtofline=line.length(); char[] lineindex=new char[lenghtofline]; lineindex=line.tochararray(); 

now make checks in loop such if(lineindex[i]=='|') or 'm' , other checks in same way...

the problem allthought program run correct on windows 7, vista , xp (english , greek) when try run on windows vista (german) seems check lineindex[i]=='|' false** why happen? test.csv file same.. , sure '|' exists in every line..

is there problem unicode or something??

how can make program run in every language

the test.csv file downloaded web

i sorry english. in advance..

the api specifies filereader assume default character encoding of machine on runs.

if knew csv utf-8 encoded try:

fileinputstream fis = new fileinputstream("test.csv"); inputstreamreader isr = new inputstreamreader(fis, "utf-8");  bufferedreader input = new bufferedreader(isr); 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -