your response header has nothing about a charset! and you need to set it in the request header...
I have no idea if it will ever work, as I went UTF-8 long before I met jQuery! On 6/3/07, joomlafreak <[EMAIL PROTECTED]> wrote:
Hi This the response header Date Mon, 04 Jun 2007 03:11:27 GMT Server Apache/1.3.37 (Unix) PHP/4.4.6 mod_throttle/3.1.2 FrontPage/ 5.0.2.2635 mod_psoft_traffic/0.2 mod_ssl/2.8.28 OpenSSL/0.9.7a X-Powered-By PHP/4.4.6 Connection close Transfer-Encoding chunked Content-Type text/html I don't know if it should be utf-8 or something anywhere in this. I read on this thread or some other thread that the javascript will deal with this encoding in utf-8. As for my script I am just sending two integer values to the php file and that php file is reading the database to echo the content. After that content is sent to the jquery to inject it into a div, it gets screwed up. The reasponse I see in firebug also contains the same ?? so actually it means that the content echoed itself is wrong and it is not jquery that is doing something. I am lost. I have no basic education in programming so things get complicated for me when people mention things in technical terms. Hope you can use little layman terms to explain in this thread as to how is it happening and what can be done. I am sure many would be benefited by this explanation. Thanks again On Jun 3, 10:38 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > ok the long and tedious method (as I see it) would be using an extra header > when you post all ajax requests, doing your own manual encoding of get > parameters > > OR just making sure your cgi/asp/php program handle utf if they get it. > > Perhaps someone cares to do the testing and recoding that would be require > to make iso8859 easy....??? > > I assumed a simple beforesubmit to add the header would have enabled iso8859 > or other 8 bit character set, > > On 6/3/07, joomlafreak <[EMAIL PROTECTED]> wrote: > > > > > I am also frustrated with this issue and have been reading on internet > > every bit I can make sense of but still have no clue on how to solve > > this, I have problem with Norwegian language. > > > I am using $.get to get content from database processed by a php file > > nsdb.php. This file takes out the html content from database and send > > by echo. After I inject this echoed html in my div, I get ? instead of > > special characters. > > > The meta on my page is this > > <meta http-equiv="Content-Type" content="text/html; > > charset=iso-8859-1" /> > > does it really set the header or just the <meta>? > > What's in the response headers??? > > and the header requesst as I see in firebug is this > > > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > > Acceot-Charset is what you will accept, not what you are sending. > > I just don't understand this > > > > > charset issue. May some learned solul throw some light on this issue > > in a little detail. > > > thanks in advance. > > > On Jun 3, 3:00 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > > > I don't think there is a quick and dirty solution. You need to update > > the > > > asp. > > > > http://groups.google.com/group/jquery-en/browse_thread/thread/0d65588... > > > > On 6/3/07, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > > > > I always recommend going full utf when you have this kind of > > problem... > > > > > Same here. jQuery is only going to submit UTF-8 because it uses > > > > encodeURIComponent (as it should). If you need a different charset on > > > > the server then that's where you'll need to convert it. > > > > > Mike > > > > -- > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ > > -- > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ