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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:51:41+00:00 2026-06-18T12:51:41+00:00

I read a webpage which contains hebrew characters, using: response = (”).join(opener.open(url).readlines()) The result

  • 0

I read a webpage which contains hebrew characters, using:

response = ('').join(opener.open(url).readlines())

The result I get is mixed, some of the characters come back as unicode, which I can handle.

Some of the response seems garbled. In a format I cant recognize.
An example of the recieved text is:
שלך

More precisely, it looks like this (only a snippet…):

<h3 class="_52r al aps">About ‎גדי‎</h3><div>&#x5e9;&#x5dc;&#x5da; ....</div>

The text between the divs seems scrambled. Can I convert it to unicode?

  • 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-18T12:51:43+00:00Added an answer on June 18, 2026 at 12:51 pm

    You are looking at HTML entities; use the HTMLParser library to decode these:

    >>> import HTMLParser
    >>> h = HTMLParser.HTMLParser()
    >>> print h.unescape('&#x5e9;&#x5dc;&#x5da;')
    שלך
    >>> h.unescape('&#x5e9;&#x5dc;&#x5da;')
    u'\u05e9\u05dc\u05da'
    

    To read a full urllib2 response, just use .read():

    response = opener.open(url).read()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a webpage using jquery which let me manipulate images easily. I
I want to create a webpage which shows MS Word documents and are read-write
I just started developing a multilingual webpage which site users can read and post
Edited Question I had read the webpage by using:- NSString *myText = [webView stringByEvaluatingJavaScriptFromString:@document.documentElement.textContent];
I have an HTML page from which i want to read a remote webpage
I've got a webpage which contains document.write javascript commands. These command are structured like:
I have a single Swing JFrame which contains a couple JLabels, a few read-only
I have a button on my asp.net webpage which I have coded to read
I have a webpage that I read using Python and BeautifulSoup, say soup=BeautifulSoup(urllib2.urlopen(site)) .
I have a web page with a read-only text box which shows some HTML

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.