Re: UTF8 Encoding is broken ?

Bjorn Ove Grotan <[email protected]> Mon, 16 May 2005 13:21:48 +0200
Newsgroups gmane.comp.ldap.luma.i18n
Message-ID <[email protected]>
Bj=F6rn Eschrich:
> Hi Members,
>=20
> on some posixAccounts i become an error with following text,
> any idea ?:
>=20
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 1:=20
> unexpected code byte
> Traceback (most recent call last):
>   File "/opt/luma/lib/luma/base/utils/gui/BrowserWidget.py", line 129, =
in=20
> itemClicked
>     self.emit(PYSIGNAL("ldap_result"), (deepcopy(result),))
>   File "/opt/luma/lib/luma/base/utils/gui/AdvancedObjectWidget.py", lin=
e 136,=20
> in initView
>     self.displayValues()
>   File "/opt/luma/lib/luma/base/utils/gui/AdvancedObjectWidget.py", lin=
e 173,=20
> in displayValues
>     tmpList.append(self.createAttributeString())
>   File "/opt/luma/lib/luma/base/utils/gui/AdvancedObjectWidget.py", lin=
e 233,=20
> in createAttributeString
>     valueList =3D self.ldapDataObject.getAttributeValueList(x)
>   File "/opt/luma/lib/luma/base/backend/SmartDataObject.py", line 176, =
in=20
> getAttributeValueList
>     tmpList.append(x.decode('utf-8'))
>   File "/usr/lib64/python2.4/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 1:=20
> unexpected code byte
>=20

Luma only uses builtins from python and python-ldap
Can you do a simple commandline ldapsearch for that object, so we can
see the LDIF-output?

Also, please state the version of Luma when addressing possible errors.

--=20
REgards
=20
Bj=F8rn Ove Gr=F8tan


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=3D7393&alloc_id=3D16281&op=3Dclick