On Dec 10, 2008, at 7:34 PM, [EMAIL PROTECTED] wrote:
> 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.
We never did figure that out. If I recall correctly, Marek tried once
or twice and then gave up. I understand, because this is very
frustrating to me, too.
How familiar with Python debugging are you? Are you familiar with
pdb? If so, I can guide you as to where to set the breakpoints.
Otherwise, if you're not familiar with pdb, I can try the same thing I
did then: create a customized version of the bizobj and cursor files
to help pinpoint the area where the encoding is going wrong.
-- Ed Leafe
_______________________________________________
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]