[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 importa

[jQuery] Re: Convert special characters

2008-05-22 Thread Bil Corry
hubbs wrote on 5/22/2008 2:19 PM: 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 thou

[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-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 quot

[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

[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 har

[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.

[jQuery] Re: Convert special characters

2008-05-21 Thread Karl Rudd
That's my guess. Without seeing the web page(s) in question it's pretty hard to diagnose where exactly it's going wrong. Karl Rudd On Thu, May 22, 2008 at 3:18 PM, hubbs <[EMAIL PROTECTED]> wrote: > > Karl, > > So, potentially, javascript is using a different character set when > posting with aja

[jQuery] Re: Convert special characters

2008-05-21 Thread hubbs
Karl, So, potentially, javascript is using a different character set when posting with ajax, as opposed to a normal form post? On May 21, 6:38 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > JavaScript uses UTF-8, you need to make sure your pages are using > UTF-8 and that your back end is also exp

[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 http://www.dangrossman.info/2007/05/25/handling