Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3432160
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:24:53+00:00 2026-05-18T07:24:53+00:00

in my Java code I have this snippet: String str = \\u9601; But I

  • 0

in my Java code I have this snippet:

String str = "\\u9601";

But I want it to be:

String str = "\u9601";

which represents a wide character.

Are there ways to do this?

Please help.
Thanks in advance.

Supplementary:

Sorry for the badly-described question.

System.out.print("\u9601"); //this will display a Chinese character

I am currently request a webpage(URL) which response with a JSON.
If dumped to Console using “System.out.print”, the JSON will turn out to be 6 visible characters \, u, 9, 6, 0 and 1,but not a Chinese character in eclipse.

So actually what I want is are there APIs can convert “\\u9601” to “\u9601”, since I can not hard code the Java source for the contents comes from website.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:24:54+00:00Added an answer on May 18, 2026 at 7:24 am

    If you want it to be String str = "\u9601";, keep it that way!

    Edit based on the updated question

    The StringEscapeUtils.unescapeJava method in the Apache Commons Lang API should be of help:

        String str = "\\u9601";
        str = StringEscapeUtils.unescapeJava(str);
        System.out.println(str);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Mac OS X 10.5 with Java 1.5, I have this code snippet. public
I have this java code: <script src=http://www.google.com/jsapi></script> <script type=text/javascript> google.load(jquery, 1.2.6); $(a#more).click(function() { $(#info_box).show(blind,
I have ported some LGPL code from Java to C#, which I plan to
I have a standalone Java app that has some licensing code that I want
I have the following snippet of java code: File directoryToMoveTo = new File(file.getParent()+_TEMP); boolean
I have some Java code that uses curly braces in two ways // Curly
Let's say I have some Java code: public class SomeClass { static { private
I'm using Eclipse 3.4 and have configured the Java code formatter with all of
In Eclipse IDE how do you customize the Java code style formatter to have
I have a java script code that works fine when run through a browser,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.