spetrowitsch
asked on
Reading another character-set with java
Hi,
I have a file, which has instead of the german umlauts special characters, for example instead of
ü -> } (7d),
ä -> { (7b),
ö -> | (7c),
ß -> ~ (7e),
and so on.
Can anyone tell me, what character-set that is, and how I can read that correct?
Thanks!
I have a file, which has instead of the german umlauts special characters, for example instead of
ü -> } (7d),
ä -> { (7b),
ö -> | (7c),
ß -> ~ (7e),
and so on.
Can anyone tell me, what character-set that is, and how I can read that correct?
Thanks!
maybe this characterset " charset=iso-8859-1 " helps
Sound like they did a mapping on the text values to something like unicode, but those aren't the values that I know. You may have no choice but to parse the text and convert such matchings. Especially, if it is a propietary format.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No one of the answer´s lead to a solution.
>> No one of the answer´s lead to a solution.
I answered both part of your question and here is the proof (iso8859-1) would also work fine:
http://www.microsoft.com/typography/unicode/1252.htm
You can always ask for more information if you need it
Reader in = new InputStreamReader(new FileInputStream("yourfile. txt"), "Cp1252");
I answered both part of your question and here is the proof (iso8859-1) would also work fine:
http://www.microsoft.com/typography/unicode/1252.htm
You can always ask for more information if you need it
Reader in = new InputStreamReader(new FileInputStream("yourfile.
ASKER
Now I´m in a different company. I tried that reader, and got still that curious characters. I could Accept your answer, but not with an "A" - would you like that?
Well of course i prefer to solve problems completely, but i'm not expecting an 'A' if it didn't ;-)
:-)