### Home Classes Methods

### In Files

- lib/spreadsheet/encodings.rb

### Methods

- #client
- #internal
- #utf8

### Files

- LICENSE.txt
- Manifest.txt

### Class/Module Index

Quicksearch

- Spreadsheet
- Spreadsheet::Column
- Spreadsheet::Compatibility
- Spreadsheet::Datatypes
- Spreadsheet::Encodings
- Spreadsheet::Excel
- Spreadsheet::Excel::Error
- Spreadsheet::Excel::ExcelCompatibleWorkbook
- Spreadsheet::Excel::Internals
- Spreadsheet::Excel::Internals::Biff5
- Spreadsheet::Excel::Internals::Biff8
- Spreadsheet::Excel::Offset
- Spreadsheet::Excel::Password
- Spreadsheet::Excel::Reader
- Spreadsheet::Excel::Reader::Biff5
- Spreadsheet::Excel::Rgb
- Spreadsheet::Excel::Row
- Spreadsheet::Excel::SstEntry
- Spreadsheet::Excel::Workbook
- Spreadsheet::Excel::Worksheet
- Spreadsheet::Font
- Spreadsheet::Format
- Spreadsheet::Formula
- Spreadsheet::Helpers
- Spreadsheet::Link
- Spreadsheet::Note
- Spreadsheet::NoteObject
- Spreadsheet::ParseExcel
- Spreadsheet::ParseExcel::Worksheet
- Spreadsheet::ParseExcel::Worksheet::Cell
- Spreadsheet::Row
- Spreadsheet::Workbook
- Spreadsheet::Worksheet
- Spreadsheet::Writer

No matching classes.

# Spreadsheet::Encodings

Methods for Encoding-conversions. You should not need to use any of these.

### Public Instance Methods

client(string, internal='UTF-16LE') click to toggle source

    # File lib/spreadsheet/encodings.rb, line 9
    def client string, internal='UTF-16LE'
      string = string.dup
      string.force_encoding internal
      string.encode Spreadsheet.client_encoding
    end

internal(string, client=Spreadsheet.client_encoding) click to toggle source

    # File lib/spreadsheet/encodings.rb, line 14
    def internal string, client=Spreadsheet.client_encoding
      string = string.dup
      string.force_encoding client
      string.encode('UTF-16LE').force_encoding('ASCII-8BIT')
    end

utf8(string, client=Spreadsheet.client_encoding) click to toggle source

    # File lib/spreadsheet/encodings.rb, line 19
    def utf8 string, client=Spreadsheet.client_encoding
      string = string.dup
      string.force_encoding client
      string.encode('UTF-8')
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.