Solved

how to parse unicode in java from google REST response

Posted on 2011-02-21
1
1,132 Views
Last Modified: 2012-05-11
hi all,

i am using the google REST service in my java program to get search results.

the only part i am having trouble with is the reply from google has unicode markup in it.  this is an example URL passed back from Google:
\u003cb\u003eExperts\u003c/b\u003e-\u003cb\u003eExchange\u003c/b\u003e.com

i could easily write my own method that checks for unicode and replaces it with the 'human' characters, but this is only practical so long as there are only a very limited number of unicode characters that google will use.

any ideas of a better way to do this?  can java parse unicode?
0
Comment
Question by:alexanderfoti
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34948088
Try using the Normalizer class
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now