diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2010-04-04 20:24:01 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-04-04 20:24:01 +0200 |
commit | 70e083cec45ef4a738ae0b3f20af8e4f288a7dfa (patch) | |
tree | d5264af231ee546313eb7698735abc656f767bba /inc/pageutils.php | |
parent | 550505f51d2efbdf154dea82b69bcfb758b63785 (diff) | |
download | rpg-70e083cec45ef4a738ae0b3f20af8e4f288a7dfa.tar.gz rpg-70e083cec45ef4a738ae0b3f20af8e4f288a7dfa.tar.bz2 |
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.
Diffstat (limited to 'inc/pageutils.php')
0 files changed, 0 insertions, 0 deletions