I must read a CSV file with Java and I am doing it with Super CSV library. If I open the CSV file with a text editor (both in windows or linux), I can see a row like this:
6;;07/01/1939;58;22;47;49;69; - ; - ; - ; - ; - ;
The cell that seems to contain " - ", on linux is read from java as "� - � " and on windows is read as "á - á ". I need the correct representation because I have to do a comparison. Now I'm initializing a string variable = "\uFFFD - \uFFFD " (because I developed on linux), but this code do not work on windows.
Any solution different from read the file first to check the character (the current file could not have it) or initializing a string based on OS (I will implement this as a temporary solution)?