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
UnicodeDecodeError #17
Comments
Used in smart_unicode The data can come in ASCII, and can not convert to unicode. |
I'm sorry, I didn't understand you completely. This also happens for any <textarea> content. For example, you have a form with a field rendered as a textarea. If you submit the form with a latin character in the textarea, but the form doesn't validate, when the form is rendered again showing the errors, and where normally bounded fields show their values, this error happens. |
Sorry for the delay, this week is a little hard, I'll take a deep look in the weekend :) Thanks in advance for reporting. |
Like said, the data come in ASCII and when try to replace "script" in html_code not convert to unicode. Is there any problem with it ? |
Hi @marcusalmeida, I'll fix it today or this weekend (in the worst case). Sorry for this long delay. |
Just fixed it and released 0.5 version, please upgrade. Thank you for reporting. |
Nice. I'll upgrade. |
Excellent! Thanks |
I think I've found another bug. I have a TextField in a model, and in the admin site, when I input a latin character, for example: á, after I submit the change_form and try to edit that object I get this error.
Here's the traceback:
Django Version: 1.3
Python Version: 2.6.1
Traceback:
File "/Users/jonito/mingus/proyectos/galerias-belgrano/bootstrap/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
Exception Type: UnicodeDecodeError at /admin/chunks/chunk/2/
Exception Value: ('ascii', '<textarea id="id_content" rows="10" cols="40" name="content" class="vLargeTextField">Lunes a S\xc3\xa1bados de 9 a 20hs.</textarea>', 94, 95, 'ordinal not in range(128)')
The text was updated successfully, but these errors were encountered: