DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:romanize

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:romanize [2009-02-28 13:31] 87.111.36.172tips:romanize [2020-02-22 21:38] (current) Aleksandr
Line 1: Line 1:
 +<- [[:tips|Tips and Tricks]]
 +
 ====== Romanize filenames ====== ====== Romanize filenames ======
  
-**Keywords: UTF-8,romanize, cyrillic, latin, convert, filename**+**Keywords: UTF-8, romanize, cyrillic, latin, convert, filename**
  
 When upgrading from previous versions that did not yet have the "romanize" function, you will encounter a completely 'unreadable' directory structure.  When upgrading from previous versions that did not yet have the "romanize" function, you will encounter a completely 'unreadable' directory structure. 
  
-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("utf8.php"); \\to be found in the \inc directory of the default dokuwiki install +include("utf8.php"); //to be found in the \inc directory of the default dokuwiki install 
  
 /** /**
Line 41: Line 42:
 { {
  $dest2=cleanID($dest);  $dest2=cleanID($dest);
- echo $source."->".$dest." ->$dest2<br/>";+ echo $source."->".$dest." ->$dest2<br/>\n";
     // 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);
 } }
- 
  
 ?> ?>
- 
 </code> </code>
tips/romanize.1235824261.txt.gz · Last modified: 2010-11-23 21:22 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki