I ran a wget -b. From the log, I was trying to get the list of files successfully downloaded, and for that I did a grep saved wget-log | awk -F '' '{print $2}' but it didn't work. Further investigation led me to notice that the filename is enclosed in the 3-byte left and right double quotation marks (0xE2 0x80 0x9D), instead of regular double quotation marks (0x22).Is this wget's normal behaviour, or is it some environment variable on my end, something like that? Can I make wget use regular quotation marks, or use only standard ASCII bytes in its logging, somehow? I know other ways of circumventing it, by substituting the bytes with sed for example. I'm just very intrigued by that: I spent several minutes on google looking for any comments on that and couldn't find anything, it's as if nobody ever had noticed this before.
wget outputs 3-byte quotation marks
quoting;wget
Seems to be by design in Unicode locales. There's a comment on this on wget's mailing list. The language translation files also contain translations for quotes, so you get proper quotes according to the language used.You can make it use regular quotes by using a non-Unicode locale.LC_ALL=C wget ...orLC_CTYPE=C wget ...