fix parsing of feeds that include unicode characters #59

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@smarx

Note that I haven't tested this extensively... I've pretty much only tried it with the simple case below:

# -*- coding: utf-8 -*-
import azure
from azure.storage import TableService
ts = TableService('<ACCOUNT>', '<KEY>')
ts.create_table('test')
try: ts.insert_entity('test', {'PartitionKey': 'test', 'RowKey': 'test', 'Description': 'ꀕ'})
except azure.WindowsAzureConflictError: pass
print ts.get_entity('test', 'test', 'test').Description
for e in ts.query_entities('test', "PartitionKey eq 'test'"):
    print e.Description # blows up with encoding error
@smortaz

Thanks Steve for the fix! Much appreciated & folded in.

@andrerod

Steve, thanks for your fix. It seems this had already been applied in:
3e4404d

So I'm going to close this PR.

Thanks once again and keep them coming,
Andre

@andrerod andrerod closed this Oct 17, 2012
@smarx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment