Open GoogleCodeExporter opened 8 years ago
Hello, I'm having a hard time to reproduce this, I use e.g. this in my
settings:
LANGUAGES = (
('fr', _('Français')),
('ja', _('日本語')),
)
and this works fine in Rosetta.
What encoding is your settings file in?
Also, I'm not sure I understand what you mean by "If Languages saves in DB
(MySQL)".
Thank you for your feedback.
Original comment by mbonetti
on 7 Mar 2011 at 9:16
that is mean that LANGUAGES looks like
settings.LANGUAGES = [
('en', 'English'),
('ru', '\xd0\xa0\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9'),
]
and this value was get by cursor.execute('SELECT * FROM
mysupersettings_language')
problem was on converting this string
'\xd0\xa0\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9' because
unicode('\xd0\xa0\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xb8\xd0\xb9')
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
/var/www/admitad/<ipython console> in <module>()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal
not in range(128)
Original comment by rahalevi...@gmail.com
on 9 Mar 2011 at 1:29
Original issue reported on code.google.com by
zhirafc...@gmail.com
on 23 Feb 2011 at 10:19