• Hi, pleas do you have any idea how to run plugin with UTF-8 or any other character code suporting Western european characters.
    In plugin file 88-files.php is something about it, but I am not so strong in PHP coding. THX for help.

    // Set up the relative path to the item.
    				// START:
    				// Code suggested by Peter Liu on 7/1/2011 for encoding UTF-8 files.
    				// I changed it slightly to use rawurlencode() instead of urlencode()
    				// since this code fetches from the filesystem, not a URL.  See
    				// php.net/rawurlencode for more on spaces and "+" symbols.
    				$newPath = $path . '/' . $item;
    				$temparr = explode( '/' , $linkTarget );
    
    				// Have to assemble the path this way because we can't encode the "/" character!
    				$assembledPath = "";
    				for( $i = 0; $i<count($temparr); ++$i )
    				{
    					// Use rawurlencode() to properly encode spaces for the file system.
    				   $assembledPath .= rawurlencode( $temparr[$i] ) . '/';
    				}
    				$newTarget = $assembledPath . rawurlencode( $item );
    				// END:  Code suggested by Peter Liu.

    http://ww.wp.xz.cn/extend/plugins/list-yo-files/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: List Yo' Files Pro] UTF-8 for plugin’ is closed to new replies.