Open topic with navigation

TIBCO Rendezvous® 8.8.0

# TibrvMsg.setStringEncoding()

Method

## Declaration

    static void setStringEncoding(
        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
`encoding` | Use this encoding.

## See Also

Strings and Character Encodings

TibrvMsg.getStringEncoding()

www.unicode.org

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.