TibrvMsg.setStringEncoding()
Method
Declaration
static voidsetStringEncoding
(
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
Purpose
Set the character encoding for converting between Java Unicode strings and wire format strings.
Remarks
This method overrides the default string encoding for all strings in all messages.
null
indicates the ISO 8859-1 (Latin-1) encoding:
• | To translate Unicode strings to Latin-1 strings, disregard the null high byte of each character. Unicode characters with non-null high bytes are out of the Latin-1 range. |
• | To translate Latin-1 strings to Unicode strings, pad each character with a null high byte. |
Warning |
Do not call this method while any listener events are valid. We recommend setting it at program start, before creating any listeners. |
Note |
Encoding changes are not retroactive; that is, changing the encoding affects only future string translations. For further details, see Strings and Character Encodings. |
Parameter |
Description |
|
Use this encoding. |