Welcome! Log In Create A New Profile

Advanced

Re: charset_map don't support cp936?

Maxim Dounin
January 06, 2011 02:24AM
Hello!

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

> 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....

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 Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

charset_map don't support cp936?

ruyi7952 January 05, 2011 11:39PM

Re: charset_map don't support cp936?

ruyi7952 January 06, 2011 12:55AM

Re: charset_map don't support cp936?

Maxim Dounin January 06, 2011 02:24AM

Re: charset_map don't support cp936?

ruyi7952 January 06, 2011 08:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready