John Blayter wrote:
> migration to work and not break existing files I need to find out the
> default charset of the JVM. I talked to a couple different people and

why?

> the code to work to save my life. Do I need to upgrade the JVM or
> install some kind of JDK in order for this to work?

no.

> <cfset variables.Obj.Charset = 
> createObject("java","java.nio.charset.Charset")>

the init() for Charset requires a charset name (see 
http://www.sustainablegis.com/projects/i18n/charsetTB.cfm for a CFC that 
might be useful in enumerating available charsets on a cf server). if 
you want the default charset, i think you might try dumping out the java 
system properties, maybe something like:

<cfscript>
jSys=createObject("java","java.lang.System");
writeoutput('file encoding:= #jSys.getProperty("file.encoding")#');
</cfscript>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226222
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to