954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Handling unicode values in python.

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?

swapnamishra
Newbie Poster
8 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

I think we just had a discussion related to the same issue at:
http://www.daniweb.com/techtalkforums/thread55436.html

Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You