0

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?

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Ene Uran
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.