> JObj = createobject("java", "java.lang.String");
> jObj.getBytes("UTF-8");
> testString = "My test string."
> </cfscript>
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.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

