bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] bad filenames (again)


From: Eli Zaretskii
Subject: Re: [Bug-wget] bad filenames (again)
Date: Tue, 18 Aug 2015 21:15:40 +0300

> Date: Tue, 18 Aug 2015 19:33:39 +0200
> From: "Andries E. Brouwer" <address@hidden>
> Cc: "Andries E. Brouwer" <address@hidden>, address@hidden,
>         address@hidden
> 
> Let me see whether I understand you correctly.
> 
> You want to do the right thing. You think that the right thing
> would be to invoke iconv. Since the original character set is
> unknown to user and wget, you have to guess. What could one guess?
> If the string is ASCII, fine. If the string is valid UTF-8, fine.
> If the user has specified the character set, fine.

Yes.

> Otherwise? Leave it as it is?

No, encode it as %XX hex escapes, thus making the file name pure
ASCII.  And have an option to leave it "as is", so people who want
that could have that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]