08.21.2019

Wget vs UTF-8 file name

We get will get wrong filename if it's UTF-8 file name

Wget auto change your file name if you save file with UTF-8 name (ex: japanese name)
Solution:
Add more option into wget 

wget --restrict-file-names=nocontrol http://ja.wikipedia.org/wiki/%E3%82%A2%E3%82%A4%E3%82%B6%E3%83%83%E3%82%AF%E3%83%BB%E3%82%A2%E3%82%B7%E3%83%A2%E3%83%95

Happy coding!

 

Leave a comment