tips:romanize
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:romanize [2009-02-28 13:31] – 87.111.36.172 | tips:romanize [2020-02-22 21:38] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- [[: | ||
+ | |||
====== Romanize filenames ====== | ====== Romanize filenames ====== | ||
- | **Keywords: UTF-8, | + | **Keywords: UTF-8, romanize, cyrillic, latin, convert, filename** |
When upgrading from previous versions that did not yet have the " | When upgrading from previous versions that did not yet have the " | ||
- | For example : %D0%BA%D1%8B%D1%80%D0%B3%D1%8B%D0%B7%D1%81%D1%82%D0%B0%D0%BD.txt is the same as кыргызстан.txt | + | For example: %D0%BA%D1%8B%D1%80%D0%B3%D1%8B%D0%B7%D1%81%D1%82%D0%B0%D0%BD.txt is the same as кыргызстан.txt |
This is because UTF-8 filenames have been urlencoded. | This is because UTF-8 filenames have been urlencoded. | ||
Line 24: | Line 26: | ||
<code php> | <code php> | ||
- | |||
<?php | <?php | ||
- | include(" | + | include(" |
/** | /** | ||
Line 41: | Line 42: | ||
{ | { | ||
$dest2=cleanID($dest); | $dest2=cleanID($dest); | ||
- | echo $source." | + | echo $source." |
// Simple copy for a file | // Simple copy for a file | ||
if (is_file($source)) { | if (is_file($source)) { | ||
Line 82: | Line 83: | ||
return($id); | return($id); | ||
} | } | ||
- | |||
?> | ?> | ||
- | |||
</ | </ |
tips/romanize.1235824261.txt.gz · Last modified: 2010-11-23 21:22 (external edit)