Forum Home
zTracker Forum
Powered by zForum
Access zTracker Website | Access zTracker TEST Website
Unicode Decoding
By: spira
Rank: Starfleet Ensign
Topics: 2
From: n/a
Added: 07/06/2007 - 06:39 AM

Hello, I am a new user of Zope and zTracker.
I have installed both without problem, it also works correctly, but I can't enter the czech characters into the descriptional fields of tickets.
The following error appears every time I want to display tickets with these characters.
An error was encountered while publishing this resource.

Error Type: UnicodeDecodeError
Error Value: 'ascii' codec can't decode byte 0xa8 in position 12: ordinal not in range(128)

I guess that it is not regarding to zTracker but probably to Zope itself. I'd rather ask here to avoid any misunderstandings or generalizations.
I would appreciate any help.Roll Eyes
By: cbr
Rank: Starfleet Ensign
Topics: 4
From: n/a
Added: 07/09/2007 - 09:50 AM

I have the same problem with french accent.

I add the file sitecustomize.py in Python\Lib\site-packages directory

In this file, i only add the following lines:

import sys
sys.setdefaultencoding('iso-8859-15')

If you set the good default encoding value, that will probably work.

cbr.
By: spira
Rank: Starfleet Ensign
Topics: 2
From: n/a
Added: 07/13/2007 - 08:14 AM

Thank you very much, it works. Cool!

spira
 
Welcome Anonymous User
09/07/2010 - 06:57 AM
Options:
· Login
· Signup
Quick Search:
Change Language:
System Announcements
Latest Topics