Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Deserialization: encoding mismatch #24

Open
sauzher opened this issue Aug 10, 2016 · 0 comments
Open

File Deserialization: encoding mismatch #24

sauzher opened this issue Aug 10, 2016 · 0 comments

Comments

@sauzher
Copy link

sauzher commented Aug 10, 2016

  Module transmogrify.dexterity.schemaupdater, line 115, in __iter__
  Module transmogrify.dexterity.converters, line 99, in __call__
KeyError: u'_field_image_ges\xf9 e giovane.jpg'

file variable, at line 99, contains unicode object, but serialization, and keys in dictionary, are encoded bytestring.

In my case, I solved as follow:

---                data = filestore[file]['data']
+++                data = filestore[file.encode('utf-8')]['data']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant