Using Chinese Characters With Mod_Rewrite

Posted by Moak on Server Fault See other posts from Server Fault or by Moak
Published on 2010-04-08T07:08:27Z Indexed on 2010/04/08 11:13 UTC
Read the original article Hit count: 414

Filed under:
|
|
|

I'm trying to create a rule using Chinese characters

#RewriteRule ^zh(.*) /???$1 [L,R=301]

creates error 500 when i change the file to UTF-8

#RewriteRule ^zh(.*) /%E4%B8%AD%E6%96%87%E7%89%88$1 [L,R=301]

redirects to /%25E4%25B8%25AD%25E6%2596%2587%25E7%2589%2588 (basically replacing % with %25)

Anybody familiar with this problem?

© Server Fault or respective owner

Related posts about encoding

Related posts about mod-rewrite