[jQuery] Re: Convert special characters

2008-05-29 Thread Julien de Prabère
On 22 mai, 19:19, hubbs [EMAIL PROTECTED] wrote: Well, I checked, and our website is using iso-8859-1.  I see that this is a subset of utf8.  Is it still possible to have js correctly uncode the characters? Yes but PHP work with the subset and do not work with utf-8 ! It is very important

[jQuery] Re: Convert special characters

2008-05-22 Thread Julien de Prabère
I notice with IE6.0 : Microsoft.XMLHTTP don't take care at charset and work only with utf-8 encoded responses, while Msxml2.XMLHTTP seems, like XMLHttpRequest, respect the charset if it is done ( Content-Type: text/html; charset=ISO-8859-1 in PHP). It seems explain your difficulties with

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
Well, I checked, and our website is using iso-8859-1. I see that this is a subset of utf8. Is it still possible to have js correctly uncode the characters? On May 21, 10:21 pm, Karl Rudd [EMAIL PROTECTED] wrote: That's my guess. Without seeing the web page(s) in question it's pretty hard to

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
Karl, it seems to be the biggest problem when text is copied from MS Word, then sent through ajax. The quotes don't play nice. On May 21, 10:21 pm, Karl Rudd [EMAIL PROTECTED] wrote: That's my guess. Without seeing the web page(s) in question it's pretty hard to diagnose where exactly it's

[jQuery] Re: Convert special characters

2008-05-22 Thread Bil Corry
hubbs wrote on 5/22/2008 12:23 PM: Karl, it seems to be the biggest problem when text is copied from MS Word, then sent through ajax. The quotes don't play nice. The curly quotes from MS Word are in the Windows-1252 character set. You're using ISO-8859-1, which does not have the curly

[jQuery] Re: Convert special characters

2008-05-22 Thread hubbs
Bill, I would love to move to UTF8. Problem is, 99% of our site was created with ISO-8859-1, so when I changed it to UTF8, all and ' characters got question marks. And I am not about to go through the entire site and retype those. Not sure what that happens though. On May 22, 11:12 am, Bil

[jQuery] Re: Convert special characters

2008-05-21 Thread Karl Rudd
JavaScript uses UTF-8, you need to make sure your pages are using UTF-8 and that your back end is also expecting that. Some useful links gleaned from a Google search of javascript utf-8: http://www.meanfreepath.com/support/javascript_charsets.html