[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-06 Thread oscar esp

Thanks.. however my project it is in asp :-(

On 6 jun, 04:32, Rhapidophyllum [EMAIL PROTECTED] wrote:
 Perl  Python are great at converting character sets.

 On Jun 5, 2007, at 4:00 PM, oscar esp wrote:





  I am trying to find some code to do the conversion... however I did
  get any thing right now

  On 4 jun, 21:37, Bil Corry [EMAIL PROTECTED] wrote:
  Mike Alsup wrote on 6/4/2007 8:15 AM:

  2.  Add support in the ASP page to convert UTF-8 into 8859.

  I don't know if this will help, but here's all the Windows-1252  
  chars and their UTF-8 equivalents:

  http://corry.biz/conversion_chart.html

  - Bil- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-06 Thread oscar esp

Any one knows some conversion dll or script or something I am
desesperate!!!

In order to refresh my problem:

I have a asp page with iso-8859-1 wich recives a post in utf-8... I
can not change teh code page neither the server header.. .I need to
take the Resquest.queryString(var) and conver tto iso-8859-1




On 6 jun, 09:05, oscar esp [EMAIL PROTECTED] wrote:
 Thanks.. however my project it is in asp :-(

 On 6 jun, 04:32, Rhapidophyllum [EMAIL PROTECTED] wrote:



  Perl  Python are great at converting character sets.

  On Jun 5, 2007, at 4:00 PM,oscarespwrote:

   I am trying to find some code to do the conversion... however I did
   get any thing right now

   On 4 jun, 21:37, Bil Corry [EMAIL PROTECTED] wrote:
   Mike Alsup wrote on 6/4/2007 8:15 AM:

   2.  Add support in the ASP page to convert UTF-8 into 8859.

   I don't know if this will help, but here's all the Windows-1252  
   chars and their UTF-8 equivalents:

   http://corry.biz/conversion_chart.html

   - Bil- Ocultar texto de la cita -

  - Mostrar texto de la cita -- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-06 Thread Chris W. Parker

On Wednesday, June 06, 2007 10:53 AM oscar esp  said:

 Any one knows some conversion dll or script or something I am
 desesperate!!!
 
 In order to refresh my problem:
 
 I have a asp page with iso-8859-1 wich recives a post in utf-8... I
 can not change teh code page neither the server header.. .I need to
 take the Resquest.queryString(var) and conver tto iso-8859-1

You might want to try an ASP mailing list or forum.



Good luck.





[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-06 Thread Ⓙⓐⓚⓔ

Oscar,
I've put together an ajax call that passes iso8859-1 instead of utf-8. It's
not pretty but shows that by doing your own serialize the server sees iso
chars instead of utf.

script type=text/javascript src=../js/jquery.js/script
script type=text/javascript src=../plugins/debug/jquery.debug-pack.js
/script
script type=text/javascript
   $(function(){
   $.ajax({
   url: /test.cgi,
   processData: false,
   data: 'foo='+ escape('Jörn'),
   success: function(){console.log(arguments)}
   })
   });
/script

hope it helps you.


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-06 Thread Ⓙⓐⓚⓔ

in the case where escape doesn't work for you, you would have to substitute
a function that does what you want...  I tried 1 letter ö.

On 6/6/07, Mike Alsup [EMAIL PROTECTED] wrote:


Remember that escape and unescape don't work properly for non-ASCII
characters and have been deprecated.


http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Deprecated_Features#Escape_Sequences

Mike

On 6/6/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
 Oscar,
 I've put together an ajax call that passes iso8859-1 instead of utf-8.
It's
 not pretty but shows that by doing your own serialize the server sees
iso
 chars instead of utf.

  script type=text/javascript src=../js/jquery.js/script
 script type=text/javascript
 src=../plugins/debug/jquery.debug-pack.js/script
 script type=text/javascript
 $(function(){
 $.ajax({
 url: /test.cgi,
 processData: false,
 data: 'foo='+ escape('Jörn'),
 success: function(){console.log (arguments)}
 })
 });
 /script

  hope it helps you.






--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-05 Thread oscar esp

I am trying to find some code to do the conversion... however I did
get any thing right now

On 4 jun, 21:37, Bil Corry [EMAIL PROTECTED] wrote:
 Mike Alsup wrote on 6/4/2007 8:15 AM:

  2.  Add support in the ASP page to convert UTF-8 into 8859.

 I don't know if this will help, but here's all the Windows-1252 chars and 
 their UTF-8 equivalents:

 http://corry.biz/conversion_chart.html

 - Bil



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-05 Thread Rhapidophyllum


Perl  Python are great at converting character sets.

On Jun 5, 2007, at 4:00 PM, oscar esp wrote:



I am trying to find some code to do the conversion... however I did
get any thing right now

On 4 jun, 21:37, Bil Corry [EMAIL PROTECTED] wrote:

Mike Alsup wrote on 6/4/2007 8:15 AM:


2.  Add support in the ASP page to convert UTF-8 into 8859.


I don't know if this will help, but here's all the Windows-1252  
chars and their UTF-8 equivalents:


http://corry.biz/conversion_chart.html

- Bil






[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread Bil Corry


joomlafreak wrote on 6/3/2007 8:20 PM: 

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.


Where you see the following in the response header:

Content-Type: text/html

It should be this in order for the browser to correctly use the charset being 
sent:

Content-Type: text/html; charset=ISO-8859-1

I set up a little test, curious to see how the browsers would handle various 
charsets on one page:

http://www.corry.biz/charset/

What you're looking at is four .load()s, each one specifying (or not) the 
charset of the text.  The text is the same for all four, but in their 
respective charsets.  I also have the em-dash in both UTF-8 and Windows-1252 in 
all four as well.

Testing it with FF2 and IE7, I see that not specifying a charset in the response 
header defaults to UTF-8.  Specifying it as the correct charset causes it to work 
properly.  Specifying ISO-8859-1 but including the extended chars from Windows-1252 
(smart quotes, em-dash, etc) causes FF2 to render the text as Windows-1252 even 
though ISO-8859-1 was specified.  However, IE7 is less forgiving and (correctly) 
renders the em-dash as an unknown character (em-dash doesn't exist in ISO-8859-1!). 
 So if you're serving ISO-8859-1, it's probably better to serve it using 
Windows-1252 as the charset so that both FF2 and IE7 will render the characters the 
same when those sneaky smart quotes slip in (ala copypaste from Word).


- Bil




[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread oscar esp

Hi Mike,

Then:

There are not way to do a ajax call with charset iso8859¿?
I can not add any header or something like that beforeSubmit in order
to force iso8859 instead Of utf-8 ¿?

My problem is I can not change the charset of asp pages which recives
the ajax call.

I feel a little bit idiot!!!


On 3 jun, 19:28, 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



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread joomlafreak

hi
thanks for the this more elaborate explanation. I still have one
question though.
Where do I specify my charset so make the change in response header,
in the output from the php file that I am using to query with GET or
in the ajax call itself to this php file, which I suppose would be
using beforeSubmit?

I hope you would reply to this rather mundane question for you.
Thanks again

On Jun 4, 3:32 am, Bil Corry [EMAIL PROTECTED] wrote:
 joomlafreak wrote on 6/3/2007 8:20 PM:

  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.

 Where you see the following in the response header:

 Content-Type: text/html

 It should be this in order for the browser to correctly use the charset being 
 sent:

 Content-Type: text/html; charset=ISO-8859-1

 I set up a little test, curious to see how the browsers would handle various 
 charsets on one page:

 http://www.corry.biz/charset/

 What you're looking at is four .load()s, each one specifying (or not) the 
 charset of the text.  The text is the same for all four, but in their 
 respective charsets.  I also have the em-dash in both UTF-8 and Windows-1252 
 in all four as well.

 Testing it with FF2 and IE7, I see that not specifying a charset in the 
 response header defaults to UTF-8.  Specifying it as the correct charset 
 causes it to work properly.  Specifying ISO-8859-1 but including the extended 
 chars from Windows-1252 (smart quotes, em-dash, etc) causes FF2 to render the 
 text as Windows-1252 even though ISO-8859-1 was specified.  However, IE7 is 
 less forgiving and (correctly) renders the em-dash as an unknown character 
 (em-dash doesn't exist in ISO-8859-1!).  So if you're serving ISO-8859-1, 
 it's probably better to serve it using Windows-1252 as the charset so that 
 both FF2 and IE7 will render the characters the same when those sneaky smart 
 quotes slip in (ala copypaste from Word).

 - Bil



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread joomlafreak

ok I read bout it and found it. It has to included in the php file I
am calling. Will test it now.
thanks a lot

On Jun 4, 11:03 am, joomlafreak [EMAIL PROTECTED] wrote:
 hi
 thanks for the this more elaborate explanation. I still have one
 question though.
 Where do I specify my charset so make the change in response header,
 in the output from the php file that I am using to query with GET or
 in the ajax call itself to this php file, which I suppose would be
 using beforeSubmit?

 I hope you would reply to this rather mundane question for you.
 Thanks again

 On Jun 4, 3:32 am, Bil Corry [EMAIL PROTECTED] wrote:

  joomlafreak wrote on 6/3/2007 8:20 PM:

   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.

  Where you see the following in the response header:

  Content-Type: text/html

  It should be this in order for the browser to correctly use the charset 
  being sent:

  Content-Type: text/html; charset=ISO-8859-1

  I set up a little test, curious to see how the browsers would handle 
  various charsets on one page:

  http://www.corry.biz/charset/

  What you're looking at is four .load()s, each one specifying (or not) the 
  charset of the text.  The text is the same for all four, but in their 
  respective charsets.  I also have the em-dash in both UTF-8 and 
  Windows-1252 in all four as well.

  Testing it with FF2 and IE7, I see that not specifying a charset in the 
  response header defaults to UTF-8.  Specifying it as the correct charset 
  causes it to work properly.  Specifying ISO-8859-1 but including the 
  extended chars from Windows-1252 (smart quotes, em-dash, etc) causes FF2 to 
  render the text as Windows-1252 even though ISO-8859-1 was specified.  
  However, IE7 is less forgiving and (correctly) renders the em-dash as an 
  unknown character (em-dash doesn't exist in ISO-8859-1!).  So if you're 
  serving ISO-8859-1, it's probably better to serve it using Windows-1252 as 
  the charset so that both FF2 and IE7 will render the characters the same 
  when those sneaky smart quotes slip in (ala copypaste from Word).

  - Bil



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread Mike Alsup

Oscar,

JavaScript provides native encoding capabilities for UTF-8 only.
jQuery's ajax functionality merely uses the native encodeURIComponent
method that JavaScript provides.  If your server depends on processing
8859 then you need to do one of the following:

1.  Do not use ajax for these pages.
2.  Add support in the ASP page to convert UTF-8 into 8859.
3.  Write your own JavaScript encoder to convert the data before
sending it on the client.

Setting headers on the client using beforeSubmit or beforeSend does
not do anything to effect how the data is encoded.  jQuery prepares
ajax data in $.param and if you look at that method you will see that
uses encodeURIComponent unconditionally.

In my opinion, server pages that an not capable of processing or
converting UTF-8 data are not good candidates for ajax targets.

Mike



Hi Mike,

Then:

There are not way to do a ajax call with charset iso8859¿?
I can not add any header or something like that beforeSubmit in order
to force iso8859 instead Of utf-8 ¿?

My problem is I can not change the charset of asp pages which recives
the ajax call.

I feel a little bit idiot!!!


On 3 jun, 19:28, 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




[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread Mike Alsup



jQuery's ajax functionality merely uses the native encodeURIComponent
method that JavaScript provides.


I should also mention that ALL the major JS libraries (dojo, YUI,
Prototype, Moo, etc) use this same technique.

Mike


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread Bil Corry


joomlafreak wrote on 6/4/2007 8:03 AM: 

I hope you would reply to this rather mundane question for you.
Thanks again


I know you found the answer; the reason I didn't provide it is because I don't 
use PHP, so I'm unfamiliar with how headers are set within it.

- Bil




[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-04 Thread Bil Corry


Mike Alsup wrote on 6/4/2007 8:15 AM: 

2.  Add support in the ASP page to convert UTF-8 into 8859.


I don't know if this will help, but here's all the Windows-1252 chars and their 
UTF-8 equivalents:

http://corry.biz/conversion_chart.html



- Bil




[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread oscar esp

Many thanks!!!

The problem is that my application is a old asp application and I can
not change all the charsets...

Are there any way to setup ajax (I think something like
jQuery.ajax(...)) in order to set the charset to iso-8859-1




On 2 jun, 21:00, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
 jQuery has no core character set, nor does JavaScript.

 When you don't specify it everywhere you get mixed sets. Your asp is getting
 utf-8, but you are expecting one of the ascii iso8859 sets.

 My advice is to use utf-8 everywhere and make sure you properly handle the
 utf-8 in your asp. You can also use your choice of the other sets... but
 that limits you to a certain fraction of the world's languages.

 On 6/2/07, oscar esp [EMAIL PROTECTED] wrote:







  I am doing some test and I have problems with specials chars... are
  there any way to define charset into jQueryCore?

  My code to post a form:

  main.asp
  .
  .
  script src=jquery.js/script
  script
  jQuery.noConflict();
  /script
  script src=jquery.form.js/script
  body
  form id=test1 action=test2.asp method=get
  INPUT id=Text1 type=text name=Text1
  INPUT id=td type=button onclick=saveTest(); value=Send
  name=Submit1
  /form
  .
  .

  JavaScriptFunction:

  function saveTest()
  {
          var options = {
          beforeSubmit:  preSubmitAgenda,  // pre-submit callback
      success: postSubmitAgenda  //  callback
      };

          jQuery(#test1).ajaxSubmit(options);
  }

  THE PROBLEM:

  1)Execute the code
  2) Into text Field I write : ú
  3) click on button
  4) in test2.asp (I get the request), when I check
  Request.QueryString(text1) value is =á  --  instead of
  ú

  I think that problem is related with charset or something like that,
  because If i execute a normal form without ajaxsubmit i get the right
  value: ú

  I am not sure if problem is related with jQuery core or form plugin

 --
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ- Ocultar texto de la cita -

 - Mostrar texto de la cita -



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread Ⓙⓐⓚⓔ

the horrible circle of iso8859-1 starts with the way the charset of the html
page.

I think without setting another thing, you get iso8859-1 ajax calls, a
header added in the beforesubmit might help... not sure!

I always recommend going full utf when you have this kind of problem...

Good luck!

On 6/3/07, oscar esp [EMAIL PROTECTED] wrote:



Many thanks!!!

The problem is that my application is a old asp application and I can
not change all the charsets...

Are there any way to setup ajax (I think something like
jQuery.ajax(...)) in order to set the charset to iso-8859-1




On 2 jun, 21:00, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
 jQuery has no core character set, nor does JavaScript.

 When you don't specify it everywhere you get mixed sets. Your asp is
getting
 utf-8, but you are expecting one of the ascii iso8859 sets.

 My advice is to use utf-8 everywhere and make sure you properly handle
the
 utf-8 in your asp. You can also use your choice of the other sets... but
 that limits you to a certain fraction of the world's languages.

 On 6/2/07, oscar esp [EMAIL PROTECTED] wrote:







  I am doing some test and I have problems with specials chars... are
  there any way to define charset into jQueryCore?

  My code to post a form:

  main.asp
  .
  .
  script src=jquery.js/script
  script
  jQuery.noConflict();
  /script
  script src=jquery.form.js/script
  body
  form id=test1 action=test2.asp method=get
  INPUT id=Text1 type=text name=Text1
  INPUT id=td type=button onclick=saveTest(); value=Send
  name=Submit1
  /form
  .
  .

  JavaScriptFunction:

  function saveTest()
  {
  var options = {
  beforeSubmit: preSubmitAgenda, // pre-submit callback
  success: postSubmitAgenda // callback
  };

  jQuery(#test1).ajaxSubmit(options);
  }

  THE PROBLEM:

  1)Execute the code
  2) Into text Field I write : ú
  3) click on button
  4) in test2.asp (I get the request), when I check
  Request.QueryString(text1) value is =á -- instead of
  ú

  I think that problem is related with charset or something like that,
  because If i execute a normal form without ajaxsubmit i get the right
  value: ú

  I am not sure if problem is related with jQuery core or form plugin

 --
 Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita -

 - Mostrar texto de la cita -





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread Mike Alsup



 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


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread Ⓙⓐⓚⓔ

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/0d65588467a4704a

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





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread joomlafreak

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 /

and the header requesst as I see in firebug is this
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7

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

 --
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ



[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread Ⓙⓐⓚⓔ

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

 --
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-03 Thread Ⓙⓐⓚⓔ

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

DateMon, 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-ByPHP/4.4.6
Connection  close
Transfer-Encoding   chunked
Content-Typetext/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

   --
   Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

 --
 Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: jQuery core charset???????????(please help!!!!me!)

2007-06-02 Thread Ⓙⓐⓚⓔ

jQuery has no core character set, nor does JavaScript.

When you don't specify it everywhere you get mixed sets. Your asp is getting
utf-8, but you are expecting one of the ascii iso8859 sets.

My advice is to use utf-8 everywhere and make sure you properly handle the
utf-8 in your asp. You can also use your choice of the other sets... but
that limits you to a certain fraction of the world's languages.

On 6/2/07, oscar esp [EMAIL PROTECTED] wrote:



I am doing some test and I have problems with specials chars... are
there any way to define charset into jQueryCore?

My code to post a form:

main.asp
.
.
script src=jquery.js/script
script
jQuery.noConflict();
/script
script src=jquery.form.js/script
body
form id=test1 action=test2.asp method=get
INPUT id=Text1 type=text name=Text1
INPUT id=td type=button onclick=saveTest(); value=Send
name=Submit1
/form
.
.

JavaScriptFunction:

function saveTest()
{
var options = {
beforeSubmit:  preSubmitAgenda,  // pre-submit callback
success: postSubmitAgenda  //  callback
};

jQuery(#test1).ajaxSubmit(options);
}


THE PROBLEM:

1)Execute the code
2) Into text Field I write : ú
3) click on button
4) in test2.asp (I get the request), when I check
Request.QueryString(text1) value is =á  --  instead of
ú

I think that problem is related with charset or something like that,
because If i execute a normal form without ajaxsubmit i get the right
value: ú

I am not sure if problem is related with jQuery core or form plugin





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ