Hi,

I'm sending some text to a CF template via an XMLHttpRequest; see code
below.

<CFOUTPUT>
      var sendString =
"userId=#session.UserId#&meetingId=#meetingId#&messageSent=" +
           encodeURIComponent(el.value);</CFOUTPUT>
      sendRequest.onreadystatechange=backFromSend;
      sendRequest.open("POST","schedule/comiteeSendMessage.cfm",true);
      sendRequest.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded; charset=iso-8859-1");

The called template receives the code, but despite of the
charset=iso-8859-1 specs in the header, the text seems to be received in
UTF-8: the receiving template writes the text to a file:
<CFFILE ACTION="WRITE" FILE="E:\temp\message.txt"
OUTPUT="#form.MessageSent#">

the following text was sent: "uuéé"
and the binary dump of the file shows: "75 75 C3 A9 C3 A9 0D 0A ....
uuéé"

The result is the same with either MSIE of Firefox, either CF5 or CFMX.
How can I force the text to be sent in iso-8859-1?
All the rest of the application is iso-8859-1, I don't want to mix
iso-8859-1 and UTF-8 in the database.

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:224196
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to