AW: Re: Russian Language Support
"Dr. Frank Hoffmann" <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <C7FB77B2562B4ADAB2FE4393AF7E657A@hal1> |
Thanks for the more detailed description and the example image. ZMS does not map _all_ the unicode chars to URL conformant strings. The log entry is due to missing character mapping of certain russian chars to 7bit-ASCII. This effect may be seen in Chinese, Farsi etc., too. That is why it is recommended to use the meta element "DC.Identifier.URL.Node" for declaring URL/7bit-ASCII-conformant Strings, explicitly. More about this topic: http://www.zms-publishing.com/support/content/e732/e736/e784/e1377/ http://www.zms-publishing.com/support/content/e732/e736/e784/e2701/ (only GER) I hope the answer will help so far Best Regards fh, moderator PS: Are there any code suggestions how to handle this a different (and still performant) way? -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Tobias Greitzke Gesendet: Mittwoch, 7. Mai 2008 22:34 An: [email protected] Betreff: Re: [zms-developers] Re: Russian Language Support Changing back to id-based URLs fixes the error. In the log I find the following entry: ------ 2008-05-07T22:12:31 ERROR root [ZMSFolder@/zope02/zms_instance/content/e35/e3906/e5748/e5749][search_encode ] Traceback (most recent call last): File "/srv/zope/zope02/Products/zms/_zcatalogmanager.py", line 196, in search_encode s = unicode( s, 'utf-8').encode( 'latin-1') UnicodeEncodeError: 'latin-1' codec can't encode characters in position 50-57: ordinal not in range(256) ------ Using declarative URLs returns fragmented URLs like http://www.domain.tld///index_rus.html