summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdmin <admin@marx.cafe>2022-12-04 23:15:46 -0500
committerAdmin <admin@marx.cafe>2022-12-04 23:15:46 -0500
commitb1a43539715f9860d5f4d14a4976fe4d6d5c0a9b (patch)
treec68c7bdf25dd5a54a079a12fe42fa52cebb5d273
parentaf23b8553ef9da4c551e975b9943785d8a057d2b (diff)
Convert text encoding in html2md
-rwxr-xr-xhtml2md.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/html2md.rb b/html2md.rb
index 4bbdb39..a5aca09 100755
--- a/html2md.rb
+++ b/html2md.rb
@@ -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