This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Converting from ISO-8859-1 to UTF-8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Converting from ISO-8859-1 to UTF-8" Watch "Converting from ISO-8859-1 to UTF-8" New topic
Author

Converting from ISO-8859-1 to UTF-8

V Chauhan
Ranch Hand

Joined: Nov 15, 2002
Posts: 70
Hi Ranchers,

How do I convert a String from ISO-8859-1 to UTF-8 encoding?

I tried using the CharsetDecoder and CharsetEncoder classes but some special characters like bullets etc are not getting converted properly.

Here is what I have been trying. I hope it makes sense.



Will appreciate any thoughts/suggestions on this.

Thanks in advance,
Basu.
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Could you post some code with sample data that shows the problem?
Ie create a string with the problem characters using \uxxxx and then run it thru your code to demonstrate the problem. Print the results and post it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting from ISO-8859-1 to UTF-8
 
Similar Threads
MySQL and reading non-English characters in UTF-8
Encode Data
What is Encoding and character conversion
Read Arabic text in Servlet
Changing charset from UTF-16 to ISO 8859-1