[dokuwiki] Re: problem of setting file name encode option $fnencode to 'safe'

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 6 Nov 2010 09:52:11 +0100

> I try a fresh install just now. It was in http://ipsky.org/wiki-test/
> . Everything looks fine. However, please pay attention to the
> difference of the suffix (the first two pages are with '.txt', while
> the last one is with '..txt'):
>
> wiki page "English Page Name Test" is saved as "english_page_name_test.txt";
>
> wiki page "中文页面名-Chinese Page Name Test" is saved as
> "%ff1%k13%u39%tvm%gkt.-chinese_page_name_test.txt";
>
> wiki page "Another Chinese Page Name Test-中文页面名" is saved as
> "another_chinese_page_name_test-%ff1%k13%u39%tvm%gkt..txt"
>
> Is it a bug?

No, that's correct. The dot marks the end of the encoding. If no
encoding came before then a dot is just a dot. Here are a few
examples:

test中文页面名 becomes test%ff1%k13%u39%tvm%gkt..txt - the encoding ends at
the end of pagename

test中文页面名foo becomes test%ff1%k13%u39%tvm%gkt.foo.txt - the encoding
ends before foo

The Lazy Sunday release had a bug when the encoding ended at the end
of the page name (missing the dot). This was fixed in Busy Wednesday.
Pages that were created with the wrong name in Lazy Sunday will not
work in Busy Sunday automatically, you need to rename them yourself
(adding the second dot).

Andi

-- 
splitbrain.org
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: