Welcome! Log In Create A New Profile

Advanced

Nginx convert UTF8 request to ISO-8859-1

Anonymous User
September 24, 2013 04:22PM
Hi,

IE8 (maybe also IE9/IE10) doesn't auto encode url (firefox do), and can make utf8 requests
If you put "http://<nginx-server>/?test=ééé" in the address bar, the é will not
be html encoded, and will be sent encoded in utf8 (c3a9 in hex, i've checked with wireshark)

The problem is that the fastcgi backend (mono webapp, unix socket)
get the é in ISO-8859-1 (e9 in hex, i've checked with socat)

Is it normal that nginx (1.4.1) convert the request encoding from UTF8 to ISO-8859-1?

Is there a workaround (linux/nginx conf)? (haven't found any yet)

What the RFCs are saying? (HTTP request encoding, Fastcgi param encoding)


I'm not using rewrite in nginx, i'm just passing the request to
a fastcgi unix socket.
(I will provide a minimal test conf/do more tests tomorrow)

To reproduce:
Request: curl -O "http://<nginx-server>/?test=ééé"
Request capture: sudo tcpdump -X 'port 80'
Backend capture: sudo socat -t100 -x -v UNIX-LISTEN:/path/to/sock,mode=777,reuseaddr,fork UNIX-CONNECT:/path/to/sock.original
http://superuser.com/questions/484671/can-i-monitor-a-local-unix-domain-socket-like-tcpdump

Thanks in advance
Etienne

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

Nginx convert UTF8 request to ISO-8859-1

Anonymous User September 24, 2013 04:22PM

Re: Nginx convert UTF8 request to ISO-8859-1

Francis Daly September 24, 2013 05:48PM

Re: Nginx convert UTF8 request to ISO-8859-1

Anonymous User September 25, 2013 07:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
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