This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting from ISO-8859-1 to UTF-8

 
V Chauhan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 882
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic