I post this after a long search for the answer in the list and the
documentation.
I have a MySQL database, with charset=utf8 in all tables. Python reports:
>>> locale.getlocale()
(None, None)
>>> locale.getdefaultlocale()
('en_US', 'UTF8')
and echo $LANG:
$ echo $LANG
en_US.UTF-8
I am entering greek field values in a text field, and save with a button.
Then, I get a dialog informing me of the following:
Save Failed:
'latin-1' codec can't encode character u'\u0393' in position 152: ordinal
not in range(256)
I tried setting the Encoding field of all bizobjs to 'UTF-8' and 'utf_8'.
I did the same for app.Charset. I also added this line to my main.py:
app.DatabaseActivityLog = codecs.getwriter("UTF-8")(sys.stdout)
which I read somewhere, might help. But I get the same error. I found no
instructions for this, except for a 2006 posting in the mailing list:
http://leafe.com/archives/showFullThd/334359
However, there are no clear instructions on what to do to solve this.
Alexander Altanis
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]