harryprince / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

UnicodeDecodeError: 'ascii' codec can't decode byte, related to #127 #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm just kinda reopening #127 providing some more information regarding this 
issue.
I'm still having the problem after manually applying the fix in r399.
However I got everything fixed using dtamborelli's fix (given in #127 itself).

What steps will reproduce the problem?
Uploading a file with some special chars "áéñçã"
I've reproduced the problem from the python shell http://dpaste.com/hold/225114/

What is the expected output? What do you see instead?
Getting the following error
UnicodeDecodeError: 'ascii' codec can't decode byte...

What version of the product are you using? On what operating system?
Photologue 2.2
Django 1.1.1
Python 2.6.2

Please provide any additional information below.
Traceback with r399 applied
http://dpaste.com/hold/225114/

Original issue reported on code.google.com by andre.mi...@gmail.com on 5 Aug 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Hi, I'm back here with two news.

The bad news is that dtamborelli's fix broke my photologue tests after I've 
updated Django to the 1.2.1 see http://dpaste.com/225632/ (it's truncated cause 
dpaste didn't allow me and output of that big).
I even tested twice, so I went back to Django 1.1.1 and everything was fine, 
then back up to the 1.2.1, broken again.

The good news is that reverting to the original photologue-2.2 models.py fix 
the broken tests but also the original encoding issue disappeared!

Original comment by andre.mi...@gmail.com on 6 Aug 2010 at 2:31