binaryencodeTo(string encoding)
Encodes this string to binary using given character encoding,
throws IOError if string cannot be mapped binaryencodeTo(string encoding, binary replacement)
Encodes this string to binary using given character encoding,
unmappable characters are replaced with given binary binaryencodeTo(string encoding, string replacement)
Encodes this string to binary using given character encoding,
unmappable characters are replaced with given string binaryencodeTo(string encoding, null ignore)
Encodes this string to binary using given character encoding,
unmappable characters are ignored.
Throws
BadParameter -
if given character encoding is unsupported,
or replacement is invalid IOError -
if some characters are unmappable and no replacement given