?
Solved

how to parse unicode in java from google REST response

Posted on 2011-02-21
1
Medium Priority
?
1,180 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 2000 total points
ID: 34948088
Try using the Normalizer class
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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 last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

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