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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:50:34+00:00 2026-05-28T03:50:34+00:00

I am using JSoup to parse a gb2312 charset page: http://vars.sinaapp.com/u/t/jsoup_output_encoding_issue.html source code: String

  • 0

I am using JSoup to parse a gb2312 charset page:
http://vars.sinaapp.com/u/t/jsoup_output_encoding_issue.html

source code:

String testURL="http://vars.sinaapp.com/u/t/jsoup_output_encoding_issue.html";
Document doc=Jsoup.connect(testURL).get();          
System.out.println(
    doc.select("div").html()
);

this gives the following output:

1:? 2:� 3:� 4:—

I want to get same with page source code:

1:· 2:慒 3:啰 4:—

Is there any way to do this?‎

  • 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-28T03:50:35+00:00Added an answer on May 28, 2026 at 3:50 am

    Try settingdoc.outputSettings().escapeMode(EscapeMode.xhtml) or changing the output charset before printing.

    See also the (paltry) documentation for EscapeMode.

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

Sidebar

Related Questions

I`m using the following code post values using JSoup: Document document = Jsoup.connect(http://www......com/....php) .data(user,user,password,12345,email,info@tutorialswindow.com)
I am using this code to retreive a html page and parse it while(doc
I am using a HTML parser called Jsoup, to load and parse HTML files.
Im using JSoup to parse HTML response. I have multiple Div tags. I have
how can i parse only text from a web page using jsoup using java?
hi all i am using jsoup in a java-ee app to parse html i
I'm trying to parse some html using jsoup (1.3.3) in my android activity. When
I am currently using Jsoup to parse HTML document and I use the following
I'm using Java and Jsoup to parse HTML pages and I want to get
My app is using JSoup to download the HTML of a message board page

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.