[ZCM] [ZC] 1762/ 4 Assign "Restructured Text unicode problem"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Tue May 3 01:01:09 EDT 2005
Issue #1762 Update (Assign) "Restructured Text unicode problem"
Status Accepted, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1762
==============================================================
= Assign - Entry #4 by ajung on May 3, 2005 1:01 am
Status: Pending => Accepted
Supporters added: ajung
RestructuredText documents have dedicated properties for input and output-encoding
which must be set properly. Please verify if this is the case for you.
And please provide a **full traceback** if you want to have this fixed.
________________________________________
= Comment - Entry #3 by garanin on Apr 29, 2005 5:27 pm
Details:
1) add ReStructureText Document from ZMI
2) edit new document: i write russian text UTF-8 (ÑÑа)
3) try save document => Error Type: UnicodeEncodeError
Error Value: 'ascii' codec can't encode characters in position 507-509: ordinal not in range(128)
________________________________________
= Comment - Entry #2 by ajung on Apr 29, 2005 6:05 am
Please describe how to provoke a Unicode error.
________________________________________
= Request - Entry #1 by garanin on Apr 22, 2005 5:58 pm
DocumentTemplate/DT_Var/restructured_text not work with unicode :
def restructured_text(v, name='(Unknown name)', md={}):
from reStructuredText import HTML
if isinstance(v,StringType): txt = v
elif aq_base(v).meta_type in ['DTML Document','DTML Method']:
txt = aq_base(v).read_raw()
else: txt = str(v) <========================== error for UnicodeType
return HTML(txt)
==============================================================
More information about the Zope-Collector-Monitor
mailing list