X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/603585875a25458b5460c7c0b11cd05e84e7b5c8..1ff076b00ab7b997c6612d95b105be76c51512b7:/doc/bugs/i18n_characters_in_post_title.mdwn?ds=inline diff --git a/doc/bugs/i18n_characters_in_post_title.mdwn b/doc/bugs/i18n_characters_in_post_title.mdwn index fd4a5dd9b..4704e13a1 100644 --- a/doc/bugs/i18n_characters_in_post_title.mdwn +++ b/doc/bugs/i18n_characters_in_post_title.mdwn @@ -20,4 +20,40 @@ I hope it's a bug, not a feature and you fix it soon :) --Pawel >> what the character number is. I only want to blog :) >> BTW, why don't you use the modified-UTF7 coding for page names ->> as used in IMAP folder names with non-Latin letters? --Pawel \ No newline at end of file +>> as used in IMAP folder names with non-Latin letters? --Pawel + +>>> Joey, do you intend to fix that bug or it's a feature +>>> for you? ;) --Pawel + +>>>> Of course you can put Polish characters in the title. but the page +>>>> title and filename are not identical. Ikiwiki has to place some limits +>>>> on what filenames are legal to prevent abuse. Since +>>>> the safest thing to do in a security context is to deny by default and +>>>> only allow a few well-defined safe things, that's what it does, so +>>>> filenames are limited to basic alphanumeric characters. +>>>> +>>>> It's not especially hard to transform your title into get a legal +>>>> ikiwiki filename: + + joey@kodama:~>perl -MIkiWiki -le 'print IkiWiki::titlepage(shift).".mdwn"' "Błąd" + B__197____130____196____133__d.mdwn + +>>>>> Thanks for the hint! It's good for me, but rather not for common users :) + +>>>>>> Interesting... I have another result: +>>>>>> +>>>>>> perl -MIkiWiki -le 'print IkiWiki::titlepage(shift).".mdwn"' "Błąd" +>>>>>> B__179____177__d.mdwn +>>>>>> +>>>>>> What's your locale? I have both pl\_PL (ISO-8859-2) and pl\_PL.UTF-8, +>>>>>> but I use pl\_PL. Is it wrong? --Pawel + +>>>> Now, as to UTF7, in retrospect, using a standard encoding might be a +>>>> better idea than coming up with my own encoding for filenames. Can +>>>> you provide a pointer to a description to modified-UTF7? --[[Joey]] + +>>>>> The modified form of UTF7 is defined in [RFC 2060](http://www.ietf.org/rfc/rfc2060.txt) +>>>>> for IMAP4 protocol (please see section 5.1.3 for details). + +>>>>> There is a Perl [Unicode::IMAPUtf7](http://search.cpan.org/~fabpot/Unicode-IMAPUtf7-2.01/lib/Unicode/IMAPUtf7.pm) +>>>>> module at the CPAN, but probably it hasn't been debianized yet :( --Pawel