Home
last modified time | relevance | path

Searched hist:"70 e083cec45ef4a738ae0b3f20af8e4f288a7dfa" (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/inc/
H A DSafeFN.class.php70e083cec45ef4a738ae0b3f20af8e4f288a7dfa Sun Apr 04 18:24:01 UTC 2010 Christopher Smith <chris@jalakai.co.uk> class for safely encoding filenames

This class tries to satisfy the following requirements:

* all ASCII alphanumeric chars in the input should stay the same
ASCII alphanumeric chars in the output
* the resulting string should be as short as possible
* the operation needs to be reversable without any data loss
* the resulting ASCII string should be case insensitive
* there should be no restriction on the input length
* the whole UTF-8 range should be allowed

using it creates a way to store UTF-8 in filenames even if the
underlying filesystem does not support UTF-8. It is also pretty
robust when files are moved between various filesystems and it
creates shorter filenames than the currently used urlencoding.