开发者

Allowing foreign characters in .htaccess mod_rewrite

Is there a way to allow foreign characters in .htaccess mod_rewrite character sets? i.e., a way to ad开发者_运维问答d foreign characters like ç and others to ([A-z]+) ?


I’m not quite sure with what character encoding Apache interprets the data in configuration files like the .htaccess file. But you can express these characters with the hexadecimal notation \xhh like:

# ç in ISO 8859-1
RewriteRule \xE7 …
# ç in UTF-8
RewriteRule \xC3\xA7 …

Now all you need to know is how these characters are encoded when requested (in general either ISO 8859-1 or UTF-8).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜