The following Issue is documented in the Macromedia MX Release Notes:
http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx.html

--------------------------------------------------------

When submitting data through a form using the post method, and when 
enctype="multipart/form-data", character encoding is not handled correctly. To remedy 
this, use code like the following example instead of using SetEncoding: 

<cfscript>
function getMultipartFormParameter(key, encoding)
{
        param = key.getBytes(encoding);
        value = evaluate(toString(param, "ISO-8859-1"));
        param = value.getBytes("ISO-8859-1");
        return toString(param, encoding);
}
</cfscript>

--------------------------------------------------------

How can this function work?
getBytes() is not a cold fusion function, but a java string function?

I was trying for 4 hours the make this function work.

<cfset url.test="���">
<cfset s = createObject("java", "java.lang.String")>
<cfdump var="#s#">
<cfset v = createObject("java", "java.lang.String")>
<cfdump var="#v#">
<cfset s = "url.test">
<cfdump var="#s#">
<cfset s = s.getBytes("UTF-8")>
<cfdump var="#s#">
<cfset v = evaluate(toString(s, "UTF-8"))>
<cfdump var="#v#">
<cfset s = v.getBytes("UTF-8")>
<cfdump var="#s#">
<cfset s = toString(s, "UTF-8")>
<cfdump var="#s#">

But this is not the solution, your help would be appreciated.

Thanks in advance,
Harry

-- 
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Heimeranstr. 68 | 80339 M�nchen
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de
*****************************************
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to