diff options
author | Admin <admin@marx.cafe> | 2022-12-04 23:15:46 -0500 |
---|---|---|
committer | Admin <admin@marx.cafe> | 2022-12-04 23:15:46 -0500 |
commit | b1a43539715f9860d5f4d14a4976fe4d6d5c0a9b (patch) | |
tree | c68c7bdf25dd5a54a079a12fe42fa52cebb5d273 | |
parent | af23b8553ef9da4c551e975b9943785d8a057d2b (diff) |
Convert text encoding in html2md
-rwxr-xr-x | html2md.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ end filename = ARGV[0] file_no_ext = File.basename(filename, File.extname(filename)) -content = File.read(filename).encode('UTF-8', invalid: :replace, undef: :replace) +content = File.read(filename).encode('UTF-8', 'iso-8859-1', invalid: :replace, undef: :replace) doc = Nokogiri.parse(content) title = doc.title |