Wikitten icon indicating copy to clipboard operation
Wikitten copied to clipboard

scandir and character encoding

Open nltesown opened this issue 11 years ago • 0 comments

I've just installed Wikitten and started to play with it (looks very nice!), adding files and directories. My OS is Windows 7 and I've noticed that when files and folder names have special characters (e.g. accented chars), they're not properly rendered. A quick workaround for my particular situation was to add:

$item = iconv("windows-1250", "UTF-8", $item);

after https://github.com/victorstanciu/Wikitten/blob/master/wiki.php#L238 (EDIT: not a workaround because then the links don't work anymore).

Any idea for some more general and robust solution that could be included in your code?

nltesown avatar Sep 16 '14 09:09 nltesown