943,946 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 2449
  • Python RSS
Sep 28th, 2006
0

Handling unicode values in python.

Expand Post »
Hi,

I have a function in Vc++ called Execute.
I pass arguments to the function in hex and it returns the value in hex.
>>> p.Execute(s1)
The return value is handled in unicode format by python.
u'\u1211\u2b08'

I am supposed to convert the hex return value to BCD.
Since python converts it to unicode I have no idea how to proceed.
If I convert to ascii ,I get UncodeEncodeError.
Any suggetions on how to proceed with it?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
swapnamishra is offline Offline
8 posts
since Apr 2006
Sep 28th, 2006
0

Re: Handling unicode values in python.

I think we just had a discussion related to the same issue at:
http://www.daniweb.com/techtalkforums/thread55436.html
Reputation Points: 625
Solved Threads: 211
Posting Virtuoso
Ene Uran is offline Offline
1,704 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Burned by mutability
Next Thread in Python Forum Timeline: Image Load: MIA





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC