fix weird ASCII encoding errors

This commit is contained in:
Jorge Morante 2021-11-16 19:38:25 +01:00
parent e4ee66c27f
commit 576438708e
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# encoding: UTF-8
GC.disable

View File

@ -98,7 +98,7 @@ class ::Fingers::Hinter
end
def lines
@lines ||= input.split("\n")
@lines ||= input.force_encoding('UTF-8').split("\n")
end
def n_matches