[Zope] encode problem

Jaroslav Lukesh lsh@wo.cz
Mon, 28 Apr 2003 12:07:08 +0100


: Odesílatel: Bojan Bjelic <van_bele@yahoo.com>
: When I use this script
: 	x = unicode('abc', 'utf-8')
: 	file_str = x.encode('cp1250')
: I get this message
: Error Type: TALESError
: Error Value: exceptions.LookupError on no codec search functions
: registered: can't find encoding in '', at line 56, column 2

Did you have specified CP1250 as Zope language?

For example czech lang (locale: cs_CZ.CP1250):

z2.py -L 'cs_CZ.CP1250'

You need of course locale in CP1250 too. RH8 has this, MDK 9.1 does not,
but I was generate it (with some uninterested errors in day/month names
etc). And my Zope work with it OK!

Regards JL.