Solved

how to parse unicode in java from google REST response

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

728 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