Open dw9694 opened 2 years ago
There's no way to do that right now as it pretty much assumes UTF-8 at the moment, but I'll have a look into it.
I would pipe it through iconv --from-code <your_charset>
.
Example: If your file is encoded with windows-1252, you can fix it like that:
cat /tmp/index.html | iconv --from-code windows-1252 | htmlq 'title'
Or even simpler: If you want to read from a file directly:
iconv --from-code windows-1252 /tmp/index.html | htmlq 'title'
Hi. How to specify charset?