PH> look at the JVM arguments.

How would I read them without shell or CFAdmin access?

PH> you're setting the *file encoding* to utf-8?

Ermm, the GetEncoding("URL") and GetEncoding("FORM") return UTF-8.

PH> is there a public example of this?

May I contact you offlist with that?

PH> now() produces a very fine datetime object.

But it's not ODBC compliant, is it???

PH> its the format for your locale (ex.'06.02.06').

Pardon?

PH> no, not really. if you have to stick to the locale format then you need to
PH> provide the padded date part output but using single function to do this at
PH> least gets around the DateFormat issue you're seeing.

Now my brain gets fuzzy... I do need tree (or six) single values, each
padded to two digits.

PH> to further narrow this & maybe another workaround does this:

PH> <cfscript>
PH> request.dDatum1=now();
PH> thisLocale=createObject("java","java.util.Locale").init("de","DE");
PH> jDateFormat=createObject("java","java.text.SimpleDateFormat");
PH> 
request.sDatum1Tag=jDateFormat.init("dd",thisLocale).format(request.dDatum1);
PH> 
request.sDatum1Monat=jDateFormat.init("MM",thisLocale).format(request.dDatum1);
PH> 
request.sDatum1Jahr=jDateFormat.init("y",thisLocale).format(request.dDatum1);
PH> </cfscript>

PH> blow up the german text too?

Huh, this one works like a charm! All umlauts are rendered properly.
How comes?

>> I always thought of it being latin-1 because my conversion tool told
>> me it'll that encoding. And the MySQL status output also tells me that
>> it uses 'latin1' as server and client characterset.

PH> well these encodings are *almost* identical, some apps/people treat them as 
if
PH> they were identical.

Hmm. But I thought CFMX always uses its own JVM with its own
settings...

-- 
Patric Stumpe
mailto:[EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231580
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