Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

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!

0
spetrowitsch
Asked:
spetrowitsch
1 Solution
 
orhanbabaCommented:
maybe this characterset         " charset=iso-8859-1 " helps
0
 
tomboshellCommented:
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.  
0
 
CEHJCommented:
Those are ascii encodings, which you can see as Cp1252 if you're using windows. If you use a Reader instead of an InputStream, it should work out OK
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
spetrowitschAuthor Commented:
No one of the answer´s lead to a solution.
0
 
CEHJCommented:
>> 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");
0
 
spetrowitschAuthor Commented:
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?
0
 
CEHJCommented:
Well of course i prefer to solve problems completely, but i'm not expecting an 'A' if it didn't ;-)
0
 
CEHJCommented:
:-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now