| Class | Iconv |
| In: |
ext/iconv/iconv.c
|
| Parent: | Data |
Document-class: Iconv::BrokenLibrary
Detected a bug of underlying iconv(3) libray.
Shorthand for
Iconv.open(to, from) { |cd|
(strs + [nil]).collect { |s| cd.iconv(s) }
}
| to, from: | see Iconv.new |
| strs: | strings to be converted |
Exceptions thrown by Iconv.new, Iconv.open and Iconv#iconv.
Creates new code converter from a coding-system designated with from to another one designated with to.
| to: | encoding name for destination |
| from: | encoding name for source |
| TypeError: | if to or from aren‘t String |
| InvalidEncoding: | if designated converter couldn‘t find out |
| SystemCallError: | if iconv_open(3) fails |
Finishes conversion.
After calling this, calling Iconv#iconv will cause an exception, but multiple calls of close are guaranteed to end successfully.
Returns a string containing the byte sequence to change the output buffer to its initial shift state.
Shorthand for
Iconv.open(to, from) { |cd|
(strs + [nil]).collect { |s| cd.iconv(s) }
}
| to, from: | see Iconv.new |
| strs: | strings to be converted |
Exceptions thrown by Iconv.new, Iconv.open and Iconv#iconv.
ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.