Need help in converting unicode to a proper bytestream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapnamishra
    New Member
    • Aug 2006
    • 1

    #1

    Need help in converting unicode to a proper bytestream

    Hi .

    I have an method called Execute that returns a byte stream 881461312020202 02020.
    But python accepts the return value as unicode as u'\u1211\u2b08'
    Is there someway by which I can convert this unicode string to the actual value?
    The signature for the Execute method is :
    HRESULT Execute(
    [in] BSTR InStream,
    [out] BSTR* OutStream);
    };
    Execute is a method in a interface written in VC++.I am accessing this through the interface pointer.
    Can anything be done to get back the actual bytestream from the unicode string.Or is there anyother way that we can trap this return value?
Working...