[JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-18 Thread Clothears
On May 17, 11:14 pm, Poetro wrote: > What HTTP headers does your server side script sends to the client? > Does it send the right Content-type header along with a charset? Does now :-) and that did the trick. All resolved with a single header. Thanks and also to Laurie. tim -- To view archi

[JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-18 Thread Clothears
On May 18, 10:42 am, Laurie Harper wrote: > On 2011-05-18, at 4:43 AM, Clothears wrote: > > > On May 17, 11:14 pm, Poetro wrote: > > >> What HTTP headers does your server side script sends to the client? > >> Does it send the right Content-type header along with a charset? > > > At present, none

Re: [JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-18 Thread Laurie Harper
On 2011-05-18, at 4:43 AM, Clothears wrote: > On May 17, 11:14 pm, Poetro wrote: > >> What HTTP headers does your server side script sends to the client? >> Does it send the right Content-type header along with a charset? > > At present, none, as this is an ajax response rather than a web page.

[JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-18 Thread Clothears
On May 17, 11:14 pm, Poetro wrote: > What HTTP headers does your server side script sends to the client? > Does it send the right Content-type header along with a charset? At present, none, as this is an ajax response rather than a web page. Can I or should I be sending headers as part of an aj

Re: [JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-17 Thread Poetro
What HTTP headers does your server side script sends to the client? Does it send the right Content-type header along with a charset? -- Poetro -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Goo

[JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-17 Thread Clothears
On May 17, 10:50 pm, austincheney wrote: > > Now, if I look at the responseText with e.g. string.charCodeAt(), > > instead of seeing a series of UTF-8 bytes, I see a series of (large) > > unicode values which correspond to the Chinese characters displayed. > > Could you more specifically define

[JSMentors] Re: UTF-8 to Unicode conversion in ajax response

2011-05-17 Thread austincheney
> Now, if I look at the responseText with e.g. string.charCodeAt(), > instead of seeing a series of UTF-8 bytes, I see a series of (large) > unicode values which correspond to the Chinese characters displayed. Could you more specifically define your use of "Unicode"? UTF-8 is a subset, among seve