Method: String#to_utf8
- Defined in:
- lib/openc3/core_ext/string.rb
#to_utf8 ⇒ String
Converts a string to UTF-8 and returns a new string Assumes the string is Windows-1252 encoded if marked ASCII-8BIT and not UTF-8 compatible
370 371 372 |
# File 'lib/openc3/core_ext/string.rb', line 370 def to_utf8 self.dup.to_utf8! end |