On 11/05/13 20:35, Yury Katkov wrote:
> When I use 4store as database for properties my cyrillic URLs are very
> urly. Here is one of examples:
>
> http://127.0.0.1/wikivote/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:URIResolver/-D0-A1-D0-B2-D0-BE-D0-B9-D1-81-D1-82-D0-B2-D0-BE-3A-D0-94-D0-B0-D1-82-D0-B0_-D0-BF-D0-BE-D1-81-D0-BB-D0-B5-D0-B4-D0-BD-D0-B5-D0-B9_-D0-BF-D1-80-D0-B0-D0-B2-D0-BA-D0-B8-23aux
>
> Isn't that an awful URL? I would be much happier if I had something
> like that instead:
> http://127.0.0.1/wikivote/index.php/Служебная:URIResolver/Заглавная_страница
>
> Is that possible?

The URLs currently go through an encoding that eliminates all non-ascii 
characters (URL encoding) and then replaces % by -. This ensures that 
all generated URLs also can be used in MediaWiki links (e.g., in article 
names pointing to the Special URI resolver page), and that we can always 
produce valid RDF/XML exports (this syntax requires some URI parts to 
occur in XML element names, which leads to additional constraints). I 
still think that one would not need to escape Cyrillic letters for these 
reasons. If you have code that does the job better (encoding and 
decoding, capturing all symbols that cause trouble in XML or MW but 
nothing else), then we could make this an option (all of this encoding 
is in one file, so it can be changed).

Markus

> -----
> Yury Katkov, WikiVote
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to