summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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