In a Java environment, a String is always encoded in UTF-16. You care about encoding only when you need to convert from/to bytes.
you can use:
pub.string:stringToBytes
pub.string:bytesToString
and specify the encoding of the Bytes. It’s supported since beginning of WM, all versions.
BTW, if you mean ASCII, it doesn’t support many special characters, if you are converting from UTF-8 bytes, you may end up with ??? in places of special characters.
#webMethods#Integration-Server-and-ESB#webMethods-General