Force UTF-8 for more module fields

master
Adam Cammack 2019-04-24 09:30:38 -05:00
parent f14571364f
commit 40c083b894
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 3 additions and 0 deletions

View File

@ -193,8 +193,11 @@ class Obj
end end
def force_encoding(encoding) def force_encoding(encoding)
@name.force_encoding(encoding)
@full_name.force_encoding(encoding)
@description.force_encoding(encoding) @description.force_encoding(encoding)
@author.each {|a| a.force_encoding(encoding)} @author.each {|a| a.force_encoding(encoding)}
@references.each {|r| r.force_encoding(encoding)}
end end
end end