Long story about why I need this, but I have a string that has a bunch of high-UTF-8 characters. I gert it as HTML Escaped characters, i.e. "〹宠..."
and I want to convert it to something like "\uABCD\uFFAB...."
I already tried a pattern match but when I did that, it double slashed my escape characters as \\u12345\\u23456...
Admittedly part of my trouble might be that I need to conver to Hex...no biggie if that's all that it is but I think that when my string starts with "\\u[0-9]" or even "\\u[0-9a-f]" that the service on the other side is interpreting the characters literally.
IN Java this is easy, you just instantiate your string as UTF-8 but there doesn't appear to be an Oscript equivalent.
This is all in CS 16.2.6 BTW.
Also, in case the interest, we're sending strings to an external REST API using Apache HTTPClient as a java object.
-Hugh