force to binary encoding if supported
This commit is contained in:
1 parent
0d6b784de1
commit
2ec6a23fb3
1 file changed
+1
@@ -99,6 +99,7 @@ private ######################################################################
|
|||||||
(rs || []).each do |r|
|
(rs || []).each do |r|
|
||||||
data = r.gets
|
data = r.gets
|
||||||
next unless data
|
next unless data
|
||||||
|
data.force_encoding("BINARY") if data.respond_to?(:force_encoding)
|
||||||
ps, message = data.split(",", 2)
|
ps, message = data.split(",", 2)
|
||||||
color = colors[ps.split(".").first]
|
color = colors[ps.split(".").first]
|
||||||
info message, ps, color
|
info message, ps, color
|
||||||
|
|||||||
Reference in new issue
Block a user