Need help badly with french characters in the file name

Need help badly with french characters in the file name

am 04.10.2007 05:26:15 von VT

This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C80614.CB1C6F10
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hello all,

I am having difficulties for IIS to handle files with french characters =
in the name.

E.g. if I put file like "d'hypotheque.pdf" in the web folder the file =
cannot be browsed even if I click browse from IIS console (I get 404 =
error).

If I remove "e" from the name then file opens with no problem.

What can be done in IIS to make it work ?

Thank you,
VT

------=_NextPart_000_0006_01C80614.CB1C6F10
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable








Hello all,

 

I am having difficulties for IIS to =
handle files=20
with french characters in the name.

 

E.g. if I put file like =
"d'hypothèque.pdf" in the=20
web folder the file cannot be browsed even if I click browse from =
IIS=20
console  (I get 404 error).

 

If I remove "è" from the name =
then file opens with=20
no problem.

 

What can be done in IIS to make it work =

?

 

Thank you,

VT

 


------=_NextPart_000_0006_01C80614.CB1C6F10--

Re: Need help badly with french characters in the file name

am 04.10.2007 08:37:32 von Egbert Nierop

This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C80661.CE4E9530
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hi,

I checked this file on IIS 6 (windows 2003) and it works.
Make also sure that you encode the filename when used in a URL eg.
http://mysite/d'hypoth%c3%a8que.pdf

"VT" schreef in bericht =
news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl...
Hello all,

I am having difficulties for IIS to handle files with french =
characters in the name.

E.g. if I put file like "d'hypotheque.pdf" in the web folder the file =
cannot be browsed even if I click browse from IIS console (I get 404 =
error).

If I remove "e" from the name then file opens with no problem.

What can be done in IIS to make it work ?

Thank you,
VT

------=_NextPart_000_0013_01C80661.CE4E9530
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable








Hi,

 

I checked this file on IIS 6 (windows =
2003) and it=20
works.

Make also sure that you encode the =
filename when=20
used in a URL eg.

href=3D"http://mysite/d'hypoth%c3%a8que.pdf">http://mysite/ id=3Dctl00_content_lblMessage> color=3D#000000=20
size=3D3>d'hypoth%c3%a8que.pdf

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"VT" < href=3D"mailto:some1@microsoft.com">some1@microsoft.com>=20
schreef in bericht =
href=3D"news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl">news:% 23BUfTZjBIHA.=
4568@TK2MSFTNGP02.phx.gbl...

Hello all,

 

I am having difficulties for IIS to =
handle files=20
with french characters in the name.

 

E.g. if I put file like =
"d'hypothèque.pdf" in the=20
web folder the file cannot be browsed even if I click browse from =
IIS=20
console  (I get 404 error).

 

If I remove "è" from the name =
then file opens=20
with no problem.

 

What can be done in IIS to make it =
work=20
?

 

Thank you,

VT

size=3D2> 


------=_NextPart_000_0013_01C80661.CE4E9530--

Re: Need help badly with french characters in the file name

am 04.10.2007 13:28:10 von VT

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C80658.201A91C0
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hi Egbert,

Thank you for your reply and apologies for not providing all the =
details.

It behaves incorrectly as I as described exactly under IIS5.1 which is =
part of Windows XP SP2 (my dev machine).=20

On my dev box I also have VPC and it works with IIS6. But it does not =
work in our production environment under IIS6 in the same way as it does =
not work under IIS5.1.

I tried to run IIS6 on VPC in IIS5 mode - and it still works.

I tried URL encoding before I even posted to the group but with no luck.

I don't know where else to dig :( =20


VT










"Egbert Nierop" wrote in message =
news:E32BE72E-1226-411D-BC17-4377B106612F@microsoft.com...
Hi,

I checked this file on IIS 6 (windows 2003) and it works.
Make also sure that you encode the filename when used in a URL eg.
http://mysite/d'hypoth%c3%a8que.pdf

"VT" schreef in bericht =
news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl...
Hello all,

I am having difficulties for IIS to handle files with french =
characters in the name.

E.g. if I put file like "d'hypotheque.pdf" in the web folder the =
file cannot be browsed even if I click browse from IIS console (I get =
404 error).

If I remove "e" from the name then file opens with no problem.

What can be done in IIS to make it work ?

Thank you,
VT

------=_NextPart_000_000A_01C80658.201A91C0
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable








Hi Egbert,

 

Thank you for your reply and apologies =
for not=20
providing all the details.

 

It behaves incorrectly as I as=20
described exactly under IIS5.1 which is part of Windows XP SP2 =
(my dev=20
machine).

 

On my dev box I also have VPC and it =
works with=20
IIS6. But it does not work in our production environment under IIS6 =
in the=20
same way as it does not work under IIS5.1.

 

I tried to run IIS6 on VPC in IIS5 mode =
- and it=20
still works.

 

I tried URL encoding before I even =
posted to the=20
group but with no luck.

 

I don't know where else to dig :(  =


 

 

VT

 

 

 

 

 

 

 

 

 

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Egbert Nierop" < =
href=3D"mailto:egbert_nierop@nospam.invalid">egbert_nierop@n ospam.invalid=
>=20
wrote in message =
href=3D"news:E32BE72E-1226-411D-BC17-4377B106612F@microsoft. com">news:E32=
BE72E-1226-411D-BC17-4377B106612F@microsoft.com...

Hi,

 

I checked this file on IIS 6 (windows =
2003) and=20
it works.

Make also sure that you encode the =
filename when=20
used in a URL eg.

href=3D"http://mysite/d'hypoth%c3%a8que.pdf">http://mysite/ id=3Dctl00_content_lblMessage> color=3D#000000=20
size=3D3>d'hypoth%c3%a8que.pdf

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"VT" < href=3D"mailto:some1@microsoft.com">some1@microsoft.com> =
schreef in=20
bericht =
href=3D"news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl">news:% 23BUfTZjBIHA.=
4568@TK2MSFTNGP02.phx.gbl...

Hello all,

 

I am having difficulties for IIS to =
handle=20
files with french characters in the name.

 

E.g. if I put file like =
"d'hypothèque.pdf" in=20
the web folder the file cannot be browsed even if I click =
browse from=20
IIS console  (I get 404 error).

 

If I remove "è" from the =
name then file opens=20
with no problem.

 

What can be done in IIS to make it =
work=20
?

 

Thank you,

VT

size=3D2> 


------=_NextPart_000_000A_01C80658.201A91C0--

Re: Need help badly with french characters in the file name

am 06.10.2007 10:57:09 von Egbert Nierop

This is a multi-part message in MIME format.

------=_NextPart_000_0034_01C80807.A49A0650
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

It's hard to guess.
If you mind to post here \windows\system32\inetsrv\metabase.xml

NOTE: strip all lines that have the word 'pass' inside before you post.
You also can strip the ScriptMaps entry to keep the XML smaller.


"VT" schreef in bericht =
news:u1inomnBIHA.5980@TK2MSFTNGP04.phx.gbl...
Hi Egbert,

Thank you for your reply and apologies for not providing all the =
details.

It behaves incorrectly as I as described exactly under IIS5.1 which is =
part of Windows XP SP2 (my dev machine).=20

On my dev box I also have VPC and it works with IIS6. But it does not =
work in our production environment under IIS6 in the same way as it does =
not work under IIS5.1.

I tried to run IIS6 on VPC in IIS5 mode - and it still works.

I tried URL encoding before I even posted to the group but with no =
luck.

I don't know where else to dig :( =20


VT










"Egbert Nierop" wrote in message =
news:E32BE72E-1226-411D-BC17-4377B106612F@microsoft.com...
Hi,

I checked this file on IIS 6 (windows 2003) and it works.
Make also sure that you encode the filename when used in a URL eg.
http://mysite/d'hypoth%c3%a8que.pdf

"VT" schreef in bericht =
news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl...
Hello all,

I am having difficulties for IIS to handle files with french =
characters in the name.

E.g. if I put file like "d'hypotheque.pdf" in the web folder the =
file cannot be browsed even if I click browse from IIS console (I get =
404 error).

If I remove "e" from the name then file opens with no problem.

What can be done in IIS to make it work ?

Thank you,
VT

------=_NextPart_000_0034_01C80807.A49A0650
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable








It's hard to guess.

If you mind to post here=20
\windows\system32\inetsrv\metabase.xml

 

NOTE: strip all lines that have the =
word 'pass'=20
inside before you post.

You also can strip the ScriptMaps entry =
to keep the=20
XML smaller.

 

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"VT" < href=3D"mailto:some1@microsoft.com">some1@microsoft.com>=20
schreef in bericht =
href=3D"news:u1inomnBIHA.5980@TK2MSFTNGP04.phx.gbl">news:u1i nomnBIHA.5980=
@TK2MSFTNGP04.phx.gbl...

Hi Egbert,

 

Thank you for your reply and =
apologies for not=20
providing all the details.

 

It behaves incorrectly as I as=20
described exactly under IIS5.1 which is part of Windows XP =
SP2 (my=20
dev machine).

 

On my dev box I also have VPC and it =
works with=20
IIS6. But it does not work in our production environment under =
IIS6 in=20
the same way as it does not work under IIS5.1.

 

I tried to run IIS6 on VPC in IIS5 =
mode - and it=20
still works.

 

I tried URL encoding before I even =
posted to the=20
group but with no luck.

 

I don't know where else to dig =
:( =20

 

 

VT

 

 

 

 

 

 

 

 

 

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Egbert Nierop" < =
href=3D"mailto:egbert_nierop@nospam.invalid">egbert_nierop@n ospam.invalid=
>=20
wrote in message =
href=3D"news:E32BE72E-1226-411D-BC17-4377B106612F@microsoft. com">news:E32=
BE72E-1226-411D-BC17-4377B106612F@microsoft.com...

Hi,

 

I checked this file on IIS 6 =
(windows 2003) and=20
it works.

Make also sure that you encode the =
filename=20
when used in a URL eg.

href=3D"http://mysite/d'hypoth%c3%a8que.pdf">http://mysite/ id=3Dctl00_content_lblMessage> color=3D#000000=20
size=3D3>d'hypoth%c3%a8que.pdf

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"VT" < href=3D"mailto:some1@microsoft.com">some1@microsoft.com> =
schreef in=20
bericht =
href=3D"news:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl">news:% 23BUfTZjBIHA.=
4568@TK2MSFTNGP02.phx.gbl...

Hello all,

 

I am having difficulties for IIS =
to handle=20
files with french characters in the name.

 

E.g. if I put file like =
"d'hypothèque.pdf" in=20
the web folder the file cannot be browsed even if I click =
browse from=20
IIS console  (I get 404 error).

 

If I remove "è" from the =
name then file opens=20
with no problem.

 

What can be done in IIS to make =
it work=20
?

 

Thank you,

VT

size=3D2> 
>

------=_NextPart_000_0034_01C80807.A49A0650--

Re: Need help badly with french characters in the file name

am 07.10.2007 01:00:23 von David Wang

On Oct 4, 4:28 am, "VT" wrote:
> Hi Egbert,
>
> Thank you for your reply and apologies for not providing all the details.
>
> It behaves incorrectly as I as described exactly under IIS5.1 which is part of Windows XP SP2 (my dev machine).
>
> On my dev box I also have VPC and it works with IIS6. But it does not work in our production environment under IIS6 in the same way as it does not work under IIS5.1.
>
> I tried to run IIS6 on VPC in IIS5 mode - and it still works.
>
> I tried URL encoding before I even posted to the group but with no luck.
>
> I don't know where else to dig :(
>
> VT
>
> "Egbert Nierop" wrote in messagenews:E32BE72E-1226-411D-BC17-4377B106612F@microsoft.c om...
> Hi,
>
> I checked this file on IIS 6 (windows 2003) and it works.
> Make also sure that you encode the filename when used in a URL eg.
> http://mysite/d'hypoth%c3%a8que.pdf
>
> "VT" schreef in berichtnews:%23BUfTZjBIHA.4568@TK2MSFTNGP02.phx.gbl...
> Hello all,
>
> I am having difficulties for IIS to handle files with french characters in the name.
>
> E.g. if I put file like "d'hypotheque.pdf" in the web folder the file cannot be browsed even if I click browse from IIS console (I get 404 error).
>
> If I remove "e" from the name then file opens with no problem.
>
> What can be done in IIS to make it work ?
>
> Thank you,
> VT



Prior to IIS6, multi-lingual support within IIS was not complete, so
IIS cannot serve URLs with characters which are NOT in the System's
Locale. With IIS6, it is possible to serve URLs with characters in any
language (supported by Unicode and has an UTF8 encoding), provided
that the CLIENT sends over URLs encoded in UTF8. IIS also supports
serving URLs which are in the System's Locale

The entire request sequence, emphasis on data encoding/decoding,
logically looks like this:
1. User types in URL into Browser
2. Browser encodes URL for HTTP transport
3. Server decodes URL from HTTP transport
4. Server maps resource from URL virtual namespace to FileSystem
namespace
5. Server opens resource in FileSystem namespace
6. Server-side scripts (optionally) encode the resource entity body
and modify response headers for HTTP transport
7. Server sends content to client over HTTP transport
8. Browser receives content over HTTP transport
9. Browser decodes content using Content-Encoding, Content-Type
response headers and displays it appropriately

Your question has to do with steps #2 and #3 because at step #5 you
are getting "404 File Not Found".

How does your browser encode the URL with the French "e", and what is
your server side configuration for decoding? Don't just say "default"
because that's clearly not good enough. When you have mismatched
default expectations, there is no magic and defaults don't work.

The combinations that work are:
- IIS 5.1 using same system locale as browser
- IIS 6.0 using same system locale as browser
- IIS 6.0 and browser sending URLs encoded in UTF8

If you are not one of the working combinations, then things fail with
404, by-design. Yes, I know it is frustrating, but that is how things
work. You certainly don't want the server GUESSING what you mean and
accidentally serve the wrong resource, right? Client-side software
tends to be more lenient. Server-side software often requires strict
understanding by its administrator.

My guess is that your client and server are using different system
locale, and the browser is not configured to send URLs encoded in
UTF8. What happens in that case is that the browser sends the "e" in
an unknown locale to the server and the "e" gets munged into some
other non-sensical character like "?" when the server decodes with a
non-matching locale. This character gets mapped transparently to a
filename, and when IIS goes to look up that filename with the non-
sensical character it obviously does not exist -- hence 404 is
returned.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//