Method: Encoding::CodePage#codepage
- Defined in:
- lib/encoding-codepage.rb
#codepage(id) ⇒ Object
Find an Encoding object from a Micrsoft® Code Page Identifier.
A list of Code Page identifiers can be found at:
NOTE: This library doesn’t add support for all Code Pages, it merely allows you to look up existing encodings by their Code Page Identifier.
24 25 26 |
# File 'lib/encoding-codepage.rb', line 24 def codepage(id) Encoding.find("CP#{id}") end |