When I add new property Name - on English Type - String Value - on Greek (encoding "Unicode('UTF8')") I get this error message: Error Type: UnicodeEncodeError Error Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256) Any solutions?
Use "ustring" as the Property type. George Tesseris wrote:
When I add new property
Name - on English Type - String Value - on Greek (encoding "Unicode('UTF8')")
I get this error message:
Error Type: UnicodeEncodeError Error Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
Any solutions? _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
George Tesseris wrote at 2005-3-7 17:37 +0200:
When I add new property
Name - on English Type - String Value - on Greek (encoding "Unicode('UTF8')")
I get this error message:
Error Type: UnicodeEncodeError Error Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
You are using the wrong encoding -- "latin-1" is not adequate for Greek letters. -- Dieter
Dieter Maurer wrote:
George Tesseris wrote at 2005-3-7 17:37 +0200:
When I add new property
Name - on English Type - String Value - on Greek (encoding "Unicode('UTF8')")
I get this error message:
Error Type: UnicodeEncodeError Error Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
You are using the wrong encoding -- "latin-1" is not adequate for Greek letters.
Which encoding do you mean? From where can I change it? Thx in advance
George Tesseris wrote at 2005-3-9 16:14 +0200:
Dieter Maurer wrote:
George Tesseris wrote at 2005-3-7 17:37 +0200:
When I add new property
Name - on English Type - String Value - on Greek (encoding "Unicode('UTF8')")
I get this error message:
Error Type: UnicodeEncodeError Error Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)
You are using the wrong encoding -- "latin-1" is not adequate for Greek letters.
Which encoding do you mean?
The one mentioned in the "Error Value" text above!
From where can I change it?
I am not the Oracle of Delphi ;-) When you look at the associated traceback (you find it in the "error_log" object in your Zope "Root Folder" (Management Interface)), you see at least where the exception is raised. This may give you (or us) a glue to where the "latin-1" comes from. But, you must post the traceback in order for us to help you -- we do not have the magic power of ancient Greek oracles... -- Dieter
participants (3)
-
Dieter Maurer -
George Tesseris -
Vangelis Mihalopoulos