[pmwiki-users] UTF-8 problem with attach file name.

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 30 08:06:16 CST 2006


On Thu, Mar 30, 2006 at 09:58:34PM +0800, Elias Soong wrote:
> I'm using pmwiki 2.1.3, I found when I use UTF-8 characters in attach 
> file name, the non-ascii chars will be filtered. For example, if I use:
> 
> Attach:中文.doc
> 
> Then the file name of the upload link will be "doc", "中文" is filtered.
> 
> Maybe we should update the filter feature for attach file to support 
> non-English language. Thanks!


In local/config.php, set:

    $UploadNameChars = "-\\w. \\x80-\\xff";

and you'll be able to have Unicode characters in upload filenames.

Pm




More information about the pmwiki-users mailing list