File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes problem with umlaut(Latin) characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem with umlaut(Latin) characters" Watch "problem with umlaut(Latin) characters" New topic

problem with umlaut(Latin) characters

Paramagurusamy Balasubramanian
Ranch Hand

Joined: Aug 17, 2001
Posts: 55
Hi gurus,
I have one application,which takes a field from database and submits to another server/system via HTTP URL interface.The database field may contain umlaut characters(coming under Latin char set).for eg.������ etc.,.If i take those values and submit it to other server/system then the value is not reaching the destination properly.It has some other values.But if i harcode these values in a string then its reaching fine..
what is the problem behind it?.should i need to change any system configuration.
Quick responses would be highly appreciated.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Well, there are a lot of places where problems could occur in this process. Basically you need to find out what character encoding is being used/expected at various stages in the process. Whenever you exchange data between systems, make sure both systems are using the same encoding. Do not trust the default encoding supplied by a platform; it may be different from platform to platform. Whenever you create a Reader or Writer, insert an InputStreamReader or OutputStreamWriter which specifies exactly what encoding to use. And remember that even if your programs do everything correctly, if you look at data using another program (e.g. Notepad, or a web browser, or a database tool) it may be that that tool is expecting a different encoding. Or some tools may not have the necessary fonts to display the character you want to look at. It's all very annoying to deal with, and hard to give more advice in general - a lot depends on the situation. But the basic key is to make sure you know what enconding is used at every step of the process. Good luck.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: problem with umlaut(Latin) characters
jQuery in Action, 3rd edition