[jQuery] Re: jQuery AJAX load and encoding/charset problems
I don't know if the problem you both guys are having has to do exactly with this, but this is what I suggest to you: Add the following line at the very top of your script <- the script you are requesting through AJAX. header('Content-Type: text/html; charset=windows-1252'); Use the right charset code according to your country or alphabet insted of "windows-1252". I'm from Venezuela, where language is latin-american and "windows-1252" works as expected, so, that's it. I hope this help. Best Regards. Julio J. Ccs - Venezuela On 18 dic 2007, 16:28, Brandnew <[EMAIL PROTECTED]> wrote: > I have exactly the same problem... And didn't find yet an answer... I > have all sort of crazy characters... The "é", "è" and all that stuffs, > they make horrible things. > > Even if on my PHP page which I load, I put é or &eagrave; > > If someone can answer both of our problems, would be great ! > > On Oct 22, 12:54 pm, "Jesse Klaasse" <[EMAIL PROTECTED]> wrote: > > > > > Dan, I have removed the HTML and body tags now, but unfortunately this > > doesn't seem to help. Any other ideas? > > > -Original Message- > > > One thing I noticed quickly is this page is a full HTML that includes > > and tags. If you're loading HTML fragments into a DIV, you > > shouldn't load a fully qualified HTML page--you should only load the > > content that would be between the tags. > > > Having multiple html and body tags can sometimes do all sorts of strange > > things. > > > -Dan- Ocultar texto de la cita - > > - Mostrar texto de la cita -
[jQuery] Re: jQuery AJAX load and encoding/charset problems
I have exactly the same problem... And didn't find yet an answer... I have all sort of crazy characters... The "é", "è" and all that stuffs, they make horrible things. Even if on my PHP page which I load, I put é or &eagrave; If someone can answer both of our problems, would be great ! On Oct 22, 12:54 pm, "Jesse Klaasse" <[EMAIL PROTECTED]> wrote: > Dan, I have removed the HTML and body tags now, but unfortunately this > doesn't seem to help. Any other ideas? > > -Original Message- > > One thing I noticed quickly is this page is a full HTML that includes > and tags. If you're loading HTML fragments into a DIV, you > shouldn't load a fully qualified HTML page--you should only load the > content that would be between the tags. > > Having multiple html and body tags can sometimes do all sorts of strange > things. > > -Dan
[jQuery] Re: jQuery AJAX load and encoding/charset problems
Dan, I have removed the HTML and body tags now, but unfortunately this doesn't seem to help. Any other ideas? -Original Message- One thing I noticed quickly is this page is a full HTML that includes and tags. If you're loading HTML fragments into a DIV, you shouldn't load a fully qualified HTML page--you should only load the content that would be between the tags. Having multiple html and body tags can sometimes do all sorts of strange things. -Dan
[jQuery] Re: jQuery AJAX load and encoding/charset problems
Jesse, >I have already spent hours and hours on the following problem. I am using >jQuery's AJAX load method in order to put a portlet in a DIV. The portlet >url is: >http://www.bam.nl/baminternet/baminternet/test/test_jQueryAjax/actueel.jsp >http://www.bam.nl/baminternet/baminternet/test/test_jQueryAjax/actueel.jsp One thing I noticed quickly is this page is a full HTML that includes and tags. If you're loading HTML fragments into a DIV, you shouldn't load a fully qualified HTML page--you should only load the content that would be between the tags. Having multiple html and body tags can sometimes do all sorts of strange things. -Dan