Method: CodePages::CodePage#to_utf8
- Defined in:
- lib/code-pages/code_page.rb
#to_utf8(str) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/code-pages/code_page.rb', line 13 def to_utf8(str) str .each_byte .map { |byte| unicode_mapping[byte] } .pack('U*') end |