fix weird ASCII encoding errors
This commit is contained in:
parent
e4ee66c27f
commit
576438708e
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# encoding: UTF-8
|
||||
|
||||
GC.disable
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue