1051Wget & Multibyte

Making a copy of a website with wget should work like that:

wget -r mywebsite.com

-r recursively crawls the site, default is until level 5.

With filenames with non-latin characters, wget is not happy:

bash Incomplete or invalid multibyte sequence encountered Incomplete or invalid multibyte sequence encountered Incomplete or invalid multibyte sequence encountered Incomplete or invalid multibyte sequence encountered

That seems to be a bug in wget.

Workaround

wget -r --restrict-file-names=nocontrol mywebsite.com

886Making a text file executable in OSX with .command

Appending .command to a text file in OSX executes it on double click.



my-file.txt content wget https://wordpress.org/latest.tar.gz
rename my-file.txt → my-file.command