> Date: Tue, 18 Aug 2015 19:33:39 +0200
> From: "Andries E. Brouwer" <[email protected]>
> Cc: "Andries E. Brouwer" <[email protected]>, [email protected],
>         [email protected]
> 
> 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