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
I use your module of version 0.12.3 on Python 2 and MySQL as database.
And I have problem with fields with type 'FILE'.
When I upload files with non-ASCII characters in them names I have UnicodeDecodeError in MySQL save method.
This method try use value of field as bytes string.
It happen because your code convert value of field with type FILE is instance to future.types.newstr.newstr. And it doesn't convert to Python 2 unicode type as other values from form.
Can you help me solve this problem? Or maybe you show me where I must dig in my search?
The text was updated successfully, but these errors were encountered:
Hi. This is an ancient bug but I've crossed paths with this today and solved it using sys.setdefaultencoding('utf8')
PS: This method is highly discouraged but since I haven't found a way to fix this except creating a clone of/overriding forms_builder_tags.py, forms.py and views.py this'll have to do
Hello
I use your module of version 0.12.3 on Python 2 and MySQL as database.
And I have problem with fields with type 'FILE'.
When I upload files with non-ASCII characters in them names I have UnicodeDecodeError in MySQL save method.
This method try use value of field as bytes string.
It happen because your code convert value of field with type FILE is instance to
future.types.newstr.newstr
. And it doesn't convert to Python 2unicode
type as other values from form.Can you help me solve this problem? Or maybe you show me where I must dig in my search?
The text was updated successfully, but these errors were encountered: