charset_map don't support cp936?

ruyi7952 nginx-forum at nginx.us
Thu Jan 6 07:39:29 MSK 2011


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: http://forum.nginx.org/read.php?2,163984,163984#msg-163984




More information about the nginx mailing list