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

  • SEARCH
  • Home
  • 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 8209957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:54:43+00:00 2026-06-07T09:54:43+00:00

I fetched a web page, which contains Japanese, but when I print it to

  • 0

I fetched a web page, which contains Japanese, but when I print it to the console I didn’t get the output as 7月10日. Instead, it prints: 7\xe6\x9c\x8810\xe6\x97\xa5

What should I do?

  • 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-06-07T09:54:45+00:00Added an answer on June 7, 2026 at 9:54 am

    The output you get is correct. That is the UTF-8 representation of the japanese string. The problem is the console itself that it doesn’t understand UTF-8. If you write that string in a file and open it with an editor that does understand UTF-8 you’ll see the content as you would expect. You could also try to change the console’s encoding to UTF-8.

    Edit: You could also try something along:

    print '7\xe6\x9c\x8810\xe6\x97\xa5'.decode('utf-8')
    

    But whether this works depends on the whether the console encoding supports japanese characters. If for example the console’s encoding is ‘ISO Latin-1’ than it won’t work…

    I suggest you read: http://www.joelonsoftware.com/articles/Unicode.html

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

Sidebar

Related Questions

I have few images on a web page which are fetched from HTTP server
I am developing a web page code, which fetches dynamically the content from the
I have a web application which has a search facility. On the home page
I am currently creating a real time online web console that takes output from
I have a web page which, upon loading, needs to do a lot of
I have a console app that makes a single request to a web page
I'm developing an Android app that fetches a web page from a website which
I've written a Java program which scrapes some content from a web page. It
I have written following lines to click all links in fetched page but it
I need to display favicon.ico files fetched from arbitrary Web Sites as a BitmapImage

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.