Solved

how to parse unicode in java from google REST response

Posted on 2011-02-21
1
1,152 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
simple java question 3 55
Arrays.asList  VS  ArrayList 4 56
hibernate insert example 13 28
configure dependency in POM for new database 3 25
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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:

770 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