method
iconv
v1_8_7_72 -
Show latest stable
-
0 notes -
Class: Iconv
- 1_8_6_287 (0)
- 1_8_7_72 (35)
- 1_8_7_330 (0)
- 1_9_1_378 (-38)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
iconv(...)
public
Document-method: Iconv#iconv
Converts string and returns the result.
- If str is a String, converts str[start, length] and returns the converted string.
- If str is nil, places converter itself into initial shift state and just returns a string containing the byte sequence to change the output buffer to its initial shift state.
- Otherwise, raises an exception.
Parameters
str: | string to be converted, or nil |
start: | starting offset |
length: | conversion length; nil or -1 means whole the string from start |
Exceptions
- IconvIllegalSequence
- IconvInvalidCharacter
- IconvOutOfRange
Examples
See the Iconv documentation.