bug-wget
[Top][All Lists]
Advanced

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

Wget for Windows unicode issue


From: Leonid Pavel
Subject: Wget for Windows unicode issue
Date: Tue, 12 May 2020 12:37:57 +1000
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

I'm trying to use wget for windows with unicode characters and getting issues with filename creation.

Passing in "wget http://example.com/á.png"; directly works fine, however if I put the URL in a UTF-8 encoded file and run "wget -i myfile.txt", it downloads the file as "A¡.png" which is obviously incorrect.

Setting the file encoding as UTF-16 / UCS-2 just breaks entirely (tries to make a request to a gibberish URL)

However writing the file as ANSI/ASCII works correctly. This works for my example, but for characters that are not able to be represented as ASCII characters will surely fail.

Is this not possible to fix? Why does mingw not take this into account?




reply via email to

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