I'm getting errors with german UTF8 chars in Dabo:

[EMAIL PROTECTED]:~/mysrc/ugfw/fwadm> ./fwadm.py
Dabo Info Log: Wed Jun 20 16:50:53 2007: 2 database connection
definition(s) loaded.
Dabo Info Log: Wed Jun 20 16:50:53 2007: User interface already set to
'wx', so dApp didn't touch it.
Dabo Info Log: Wed Jun 20 16:50:53 2007: wxPython Version: 2.6.3.3 wxGTK
(unicode) (gtk2)
ugApp.getConnectionByName() was called
<ug.ugApp.ugApp (baseclass ug.ugApp, id:137127340)>
self.Charset: UTF8
connect with ugApp.Charset = UTF8
Database Activity Log: Wed Jun 20 16:50:58 2007: SQL: SELECT  first 1000
e_val,        e_tok,        iid   from etyp  order by e_tok
Database Activity Log: Wed Jun 20 16:50:58 2007: SQL: SELECT  first 1000
e_tok,        e_val,        sort_order,        e_str1,        e_str3,
     e_str2,        iid,        etyp_iid   from ENUM  where
ENUM."ETYP_IID" = 70000    order by sort_order
Database Activity Log: Wed Jun 20 16:50:59 2007: SQL: SELECT  first 1000
e_tok,        e_val,        sort_order,        e_str1,        e_str3,
     e_str2,        iid,        etyp_iid   from ENUM  where
ENUM."ETYP_IID" = 1000002    order by sort_order
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/dabo/lib/eventMixin.py", line
98, in raiseEvent
    bindingFunction(event)
  File "/home/uwe/mysrc/ugfw/fwadm/EtypEnumForm.py", line 131, in
onHit_btnSave
    self.save()
  File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py", line
342, in save
    bizobj.saveAll()
  File "/usr/lib/python2.5/site-packages/dabo/biz/dBizobj.py", line 272,
in saveAll
    startTransaction=False, topLevel=False)
  File "/usr/lib/python2.5/site-packages/dabo/biz/dBizobj.py", line 645,
in scanChangedRows
    func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/dabo/biz/dBizobj.py", line 325,
in save
    cursor.save()
  File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
1066, in save
    saverow(self.RowNumber)
  File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
1037, in saverow
    self.__saverow(row)
  File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
1134, in __saverow
    res = aux.execute(sql)
  File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
279, in execute
    dabo.dbActivityLog.write("FAILED SQL: %s, PARAMS: %s" %
(sql.replace("\n", " "), ", ".join(params)))
  File "/usr/lib/python2.5/site-packages/dabo/lib/logger.py", line 44,
in write
    self.LogObject.write("%s%s%s%s" % (caption, timestamp, message,
os.linesep))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
position 97: ordinal not in range(128)

This is with:
Platform: GTK
Python Version: 2.5 on linux2
Dabo Version: Version 0.9a; Revision 3185
UI Version: 2.6.3.3 on wxGTK (gtk2)

I debuged it and the statement in the debugger is:
u"update ETYP set ETYP.e_val = 'asdf\xf6' where ETYP.iid=1000002 "

'asdf\xf6' should be 'asdfö' (german oe).

If i try the statement (with 'asdfö' in python code, it works.

Any hints on what could cause this error?

Uwe


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to