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 7017013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:51:35+00:00 2026-05-27T22:51:35+00:00

I Get a long String from an Android HTTP get. The String has many

  • 0

I Get a long String from an Android HTTP get. The String has many Chinese words in it, so I get lots of scrambled code In my String. That makes my parser unworkable. I’ve heard about the data from server is kind of raw data. How can I translate the scrambled code to readable code (in Chinese)?

I’ve tried this following, but it doesn’t work.

 String retSrc = EntityUtils.toString(response.getEntity());
 byte[] queryBytes = retSrc.getBytes("Raw Data");
 String Str = new String(queryBytes,"UTF-8");
  • 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-27T22:51:36+00:00Added an answer on May 27, 2026 at 10:51 pm
    byte[] queryBytes = retSrc.getBytes("Raw Data");
    

    Raw Data is a charset encoder?

    the encoding is an ugly problem, some suggestion:

    when the string get from the site, try ‘utf-8’ or ‘gbk’ to encoding.
    if the string printed to the console is right, maybe the encoding is right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long string from android Http get like this: {movies:[ {movieId:fmen71229238,eTitle:Mission: Impossible
I'm trying to get a target to build that has quite a long list
I need to geocode adresses (get lat/long from addresses) using in .Net, to store
I'm trying to get get the short filename from a long filename but I'm
Long story short, the database I'm using needs to get looked at. Until that
I get this error on my Android emulator: Sorry The application has stopped unexpectedly.
I Have activity that get some data from the internet, and shows it to
I am creating an android app which pulls in RSS Feeds from here http://spaceflight1.nasa.gov/realdata/sightings/cities/rss/index.cgi?country=United_Kingdom&region=England&city=Manchester
I can't understand, why I can't get http response without error from any url.
This is my attempt to publish checkins from my Android app: public String APP_ID

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.