>probably should be (though that test string will be indistinguishable from
>ASCII.):
><cfscript>
>testString = "My test string.";
>JObj = createobject("java", "java.lang.String").init(testString);
>jObj.getBytes("UTF-8");
></cfscript>
>
><cfdump var="#jObj#">
>
>in mx you can do: testString.getBytes("UTF-8");
>
>if this an attempt to xfer data from a cf5 db to an mx db, doing a cfhttp
>from the mx box to the cf5 box is usually cheaper.

Paul, thanks a ton.  This actually does work, and seems to convert the string to UTF8 byte representation.  Is there a way I can assign the resulting bytecode to a variable as an actual string (raw code)?

The goal is that I must be able to hash the bytes as a string, then get the resulting UTF8 bytes of the hash in hex for encryption purposes.  The job is made a lot touger when CF5 is involved.

I hope this made sense...
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to