Re: non-western character sets and object ids
Wichert Akkerman <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 13 Mar 2014, at 11:47, Kees Hink <[email protected]> wrote: > I noticed that Wikipedia has readable URLs even for languages with > non-western character sets (like Thai, [1]). > > In Plone, object ids in non-western character sets look like random > ascii characters (maybe ascii tranlsations of UTF encoding) [2]. This is > not a human-readable URL, which is something we say Plone does. > > If browsers are capable of reading non-ascii-encoded URLs, shouldn't we > move to these? I thought i'd ask here first before creating a ticket. It turns out not everyone wants this, even if their native language is non-ASCII. In particular I’ve found that Chinese people tend to prefer using ASCII URLs over Chinese URLs. I expect it will be harder for Dutch users to find the (very infrequently used accent on their keyboard than it is to just use the pure ASCII letter, and everyone expects that the pure ASCII spelling is used in URLs. That may be different for other languages where non-ASCII is more pervasive. This is surprisingly tricky to implement, but not impossible See https://mail.zope.org/pipermail/zope-dev/2013-February/045274.html for a little bit of context, and https://github.com/wichert/experimental.utf8id for a package which makes this possible. Note that I never finished that package, so there are likely to be some remaining issues. If you want to go down that path I suggest polishing experimental.utf8id first, and then look at merging the required changes throughout the Zope/Plone stack. As an extra complication there is currently, as far as I know, no release manager for Zope so you may need to volunteer for that role as well. Wichert. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers