Re: XMLHttpRequest and charset

2005-11-15 Thread Claude Schneegans
>>I think it's most likely still going to be on the CF side of the code. I've seen people in a French forum having exactly the same problem, and they are under PHP. I think that the charset header is simply ignored, or does not work. The text is sent in UTF-8, whatever you put in the header. Thi

RE: XMLHttpRequest and charset

2005-11-15 Thread Bobby Hartsfield
on the CF side of the code. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 12:47 PM To: CF-Talk Subject: RE: XMLHttpRequest and charset Ha, that’s a difference alr

RE: XMLHttpRequest and charset

2005-11-15 Thread Bobby Hartsfield
Ha, that’s a difference alright. It was worth a shot. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 11:26 AM To: CF-Talk Subject: Re: XMLHttpRequest and

Re: XMLHttpRequest and charset

2005-11-15 Thread Claude Schneegans
>>Does it make a difference if you setRequestHeader() before you open()? It sure does: it makes an "Unspecified error" ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address:

RE: XMLHttpRequest and charset

2005-11-15 Thread Bobby Hartsfield
Subject: Re: XMLHttpRequest and charset >>Be aware in CF 6+ default to UTF-8. Try using the "charset" attribute and see if it helps I made the test under CF5, to make sure. I added an alert with the text in hexadecimal right before sending the text, and it IS in iso 8859: &quo

Re: XMLHttpRequest and charset

2005-11-15 Thread Claude Schneegans
>>Be aware in CF 6+ default to UTF-8. Try using the "charset" attribute and see if it helps I made the test under CF5, to make sure. I added an alert with the text in hexadecimal right before sending the text, and it IS in iso 8859: "75 75 E9 E9" So the XMLHttpRequest is actually converting to

Re: XMLHttpRequest and charset

2005-11-15 Thread Massimo Foti
> 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: > OUTPUT="#form.MessageSent#"> Be aware in CF 6+ default to UTF-8. Try using the "charset" attribute a

XMLHttpRequest and charset

2005-11-15 Thread Claude Schneegans
Hi, I'm sending some text to a CF template via an XMLHttpRequest; see code below. var sendString = "userId=#session.UserId#&meetingId=#meetingId#&messageSent=" + encodeURIComponent(el.value); sendRequest.onreadystatechange=backFromSend; sendRequest.open("POST","sched