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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:13:24+00:00 2026-05-29T04:13:24+00:00

I am trying to read in an excel sheet using xlrd, but I’m having

  • 0

I am trying to read in an excel sheet using xlrd, but I’m having some problems storing Chinese characters.

I am not sure why values get translated when I store it in a list:

Code:

for rownum in range(sh.nrows):
    Temp.append(sh.row_values(rownum))  

    print Temp

Output:

u’\u8bbe\u5168\u96c6\u662f\u5b9e\u6570\u96c6R\uff0cM=
{x|-2<=x<=2}
\uff0cN{x|x<1}\uff0c\u5219bar(M) nn
N
\u7b49\u4e8e

\n[A]\uff1a{x|x<-2}

[B]\uff1a
{x|-2<1}

[C]\uff1a{x|x<1}

[D]\uff1a{x|-2<=x<1}‘

However when I print out a single cell value, they are printed out correctly as per excel sheet:

Code:

 cell_test = sh.cell(1,3).value
 print cell_test

Output:

设全集是实数集R,M={x|-2<=x<=2},N={x|x<1},则bar(M) nn N等于

[A]:{x|x<-2}

[B]:{x|-2<1}

[C]:{x|x<1}

[D]:{x|-2<=x<1}

What should I do to get Python to store the above data at its original value?

Thanks!

  • 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-29T04:13:24+00:00Added an answer on May 29, 2026 at 4:13 am

    The values should be the same. They are just displayed differently.

    >>> s = u'o\ufb03ce'
    >>> print s
    office
    >>> print [s]
    [u'o\ufb03ce']
    >>> print repr(s)
    u'o\ufb03ce'
    >>> print '\n'.join([s])
    office
    

    This example shows that when you print a list individual items are displayed using repr() function, but a string is displayed as is (unicode strings are encoded to bytes first).

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

Sidebar

Related Questions

I am trying to read in an Excel file using xlrd, and I am
I'm trying to read data from an Excel sheet using Office.Interoperability.Excel namespace. I'd like
I’m trying to read and parse a UTF-8 Excel file using the PHPExcelReader but
I am trying to read data from excel files using datatable. The command select
Trying to read an RSS and select information using Linq but can't seem to
i am trying to read an excel file using java. while compiling the program
I'm trying to generate an excel file with some validations, I've read the poi
Possible Duplicate: Reading Datetime value From Excel sheet I'm trying to read in a
I'm trying to read from excel file with oleDB provider using C#: using (var
I'm working with Spring/Hibernet using NetBeans 6.9.1. I'm trying to read an Excel file

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.