[dokuwiki] what is dokuwiki encoding for accents

  • From: hugo borrell <hugoborrell@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 8 Feb 2009 06:13:23 +0100

Hello,

I'm trying to switch from deaccent 0 to deaccent 1, and this means I have to
rename all files of pages that contain stuffs like "%C3%A8" to e, etc. for
all pages named with caracters such as é, è, ä, â, ô, ù, û, ï, î, etc.

Has anyone tried to use a php script on that ?

I'd prefer use an "automatic" decoder, such as
http://fr3.php.net/utf8-decode , but this one doesn't seem to feet.

Any idea about what I could use in the following code ?

<?php
> if ($handle = opendir('.')) {
>     while (false !== ($file = readdir($handle))) { // sur tout le
> répertoire
>         if ($file != "." && $file != "..") { // pour tous les fichiers
>
>             $decode = utf8_decode ($file) ;
>             //rename($file, $decode);
>             echo "$decode<br/>";
>         }
>     }
>     closedir($handle);
> }
>
>
> ?>
>

Other related posts: