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

Elias Soong songjl at 163.net
Fri Mar 31 01:29:28 CST 2006

Not only the $UploadNameChars filter the UTF-8 chars, and also the 113 
line of upload.php:

$x = preg_replace('/^[^[:alnum:]]+/', '', $x);

Only if I comment this and set $UploadNameChars, the UTF-8 name could be ok.

Patrick R. Michaud 写道:
> 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
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users

More information about the pmwiki-users mailing list