Welcome! Log In Create A New Profile

Advanced

Re: nginx doesn't handle different URL encodings well

October 21, 2010 08:44PM
On Fri, Oct 22, 2010 at 4:09 AM, Pierre-Marie Baty <baty.pm@hotmail.fr> wrote:
>
>
> Thanks for the tip. I followed your advice and tried many locale combinations today.
>
> Unfortunately none of them helped. I can't use UTF-8 as locale because FreeBSD's FFS has no support for multibyte filenames. So if I want the system "ls" command to output "été-2008.jpg" and not something weird, I have to use one of the 8-bit locales. Currently my LANG is fr_FR.ISO8859-15 (same as Latin-1 plus the €uro sign).
>

except that I tried that in FreeBSD too.

To get proper ls output with utf-8 filename you have to:
- ensure the filename is in utf-8
- ensure shell locale is set to utf-8
- ensure terminal locale is set to utf-8

One incorrect locale in the chain and you will get broken result.

Additionally, being able to see "été-2008.jpg" using LANG other than
UTF-8 means that the filename is not stored in UTF-8, shell locale is
not in UTF-8, and terminal locale is not in UTF-8.

In which setting ONLY shell locale to UTF-8 won't help at all. After
setting terminal and shell locale to UTF-8 you must rename the file to
UTF-8.

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

nginx doesn't handle different URL encodings well

Pierre-Marie Baty October 20, 2010 09:28PM

Re: nginx doesn't handle different URL encodings well

helen October 20, 2010 09:57PM

Re: nginx doesn't handle different URL encodings well

helen October 20, 2010 10:32PM

Re: nginx doesn't handle different URL encodings well

Maxim Dounin October 21, 2010 03:34AM

RE: nginx doesn't handle different URL encodings well

Pierre-Marie Baty October 21, 2010 10:32AM

Re: nginx doesn't handle different URL encodings well

Maxim Dounin October 21, 2010 11:16AM

Re: nginx doesn't handle different URL encodings well

edogawaconan October 21, 2010 12:52PM

RE: nginx doesn't handle different URL encodings well

Pierre-Marie Baty October 21, 2010 05:14PM

Re: nginx doesn't handle different URL encodings well

Maxim Dounin October 21, 2010 07:28PM

Re: nginx doesn't handle different URL encodings well

edogawaconan October 21, 2010 08:44PM

RE: nginx doesn't handle different URL encodings well

Pierre-Marie Baty October 22, 2010 04:28AM

RE: nginx doesn't handle different URL encodings well

Pierre-Marie Baty October 22, 2010 05:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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