django makemessages - invalid multibyte sequence error
Today I was trying to run $ django-admin.py makemessages -a to pull the strings marked for translation from a django app.
I was getting the error invalid multibyte sequence
The problem was that the .po wasn't encoded properly.
This is what helped me.
(on ubuntu 10.04 Lucid Lynx)
1. $ file -i filename
This would give you the MIME type of the file
2. $ iconv --from-code=ISO-8859-1 --to-code=UTF-8 iso.txt > utf.txt
--from-code is what is returned from step 1
3. $ django-admin.py makemessages -a
Hurray no errorr now.