You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1] If I use the codes. it gets error response.
Code:
entity = azure.storage.table.Entity()
entity.SiteCode = '232633627068'
entity.SiteName = azure.storage.table.EntityProperty('Edm.String', '蘋果新聞'.encode('utf-16'))
table.insert_entity('sites', entity)
Response:
azure.common.AzureHttpError: Bad Request
InvalidInputOne of the request inputs is not valid.
[2] If I use the codes. it gets success response.
Code:
entity = azure.storage.table.Entity()
entity.SiteCode = '232633627068'
table.insert_entity('sites', entity)
The text was updated successfully, but these errors were encountered:
I am not able to reproduce this with Python 3.4 and fully up to date dependencies. What version of Python are you using so I can try with a more similar setup?
Note: If you check out the test_unicode_property_value unit test, you'll see that directly inserting unicode with no encoding should work. Could you try something similar to this code?
[1] If I use the codes. it gets error response.
Code:
entity = azure.storage.table.Entity()
entity.SiteCode = '232633627068'
entity.SiteName = azure.storage.table.EntityProperty('Edm.String', '蘋果新聞'.encode('utf-16'))
table.insert_entity('sites', entity)
Response:
azure.common.AzureHttpError: Bad Request
InvalidInput
One of the request inputs is not valid.RequestId:b87b16db-0002-004b-4b15-40a58e000000
Time:2015-12-26T19:44:59.4595166Z
[2] If I use the codes. it gets success response.
Code:
entity = azure.storage.table.Entity()
entity.SiteCode = '232633627068'
table.insert_entity('sites', entity)
The text was updated successfully, but these errors were encountered: