Charset_map don't support cp936?

My Nginx/Windows 0.8 running win2003 chinese edition.

My files named used chinese. like
http://localhost/中文目录/中文文件.rar

If use IE and firefox with encode gb2312 you can downloaded chinese
named files,but if use utf-8 you can’t download any chinese named
files.

I think use the charset_map mappings gb2312 code to reencode to
utf-8,but charset_map do not support cp936.

set charset utf-8 no help…

my mapping file,like.

charset_map  gb2312  utf-8 {
8140  4E02 ; #CJK UNIFIED IDEOGRAPH
8141  4E04 ; #CJK UNIFIED IDEOGRAPH
8142  4E05 ; #CJK UNIFIED IDEOGRAPH
8143  4E06 ; #CJK UNIFIED IDEOGRAPH
8144  4E0F ; #CJK UNIFIED IDEOGRAPH
8145  4E12 ; #CJK UNIFIED IDEOGRAPH
8146  4E17 ; #CJK UNIFIED IDEOGRAPH
8147  4E1F ; #CJK UNIFIED IDEOGRAPH
8148  4E20 ; #CJK UNIFIED IDEOGRAPH
8149  4E21 ; #CJK UNIFIED IDEOGRAPH
814A  4E23 ; #CJK UNIFIED IDEOGRAPH

}

Please help me,thanks.

Posted at Nginx Forum:

urlencode by gb2312 don’t working

http://localhost/������/��������Ӱwww.bluemov.com��������.2010.�й�̨��.��01��.DVD-HALFCD2.mp4

urlencodr by utf-8 working

http://localhost/钟无艳/【蓝光魅影www.bluemov.com】钟无艳.2010.中国台湾.第01集.DVD-HALFCD2.mp4

please help me for gb2312 support.

Posted at Nginx Forum:

Hello!

On Wed, Jan 05, 2011 at 11:39:29PM -0500, ruyi7952 wrote:

utf-8,but charset_map do not support cp936.

set charset utf-8 no help…

No, this won’t work - nginx doesn’t recode urls, you should use
correctly urlencoded links instead.

Charset module is used to specify charset for response content
and/or recode it.

my mapping file,like.

charset_map  gb2312  utf-8 {
8140  4E02 ; #CJK UNIFIED IDEOGRAPH

And this won’t work even for response content - only utf-8 and
single-byte encodings supported.

Maxim D.

thanks.

you are super man.

Posted at Nginx Forum: