Solved

how to parse unicode in java from google REST response

Posted on 2011-02-21
1
1,171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 92

Accepted Solution

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
printf performancy 11 100
spring maven example issues 3 97
DTD and JAVA versions 1 55
Netbeans and org.apache.commons.lang3 issue 3 53
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

739 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