I had forgotten that convertToString supports unicode escapes. From the doc:
You can specify the terminator or separator as a character (e.g., *) or as unit code [sic] (e.g., \u001c).
So specifying \u0015 would work in James’ case. I think it also supports other escape codes such as \r, \n, etc.
The fun part is that the enveloping services (wm.b2b.edi.util:addGroupEnvelope and wm.b2b.edi.util:addICEnvelope) do not support escaped strings as delimiters. At least they didn’t in v4.6. Thus the toChar utility was born.
#webMethods#Integration-Server-and-ESB#edi