473,389 Members | 1,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,389 software developers and data experts.

problems with ajax accents on ie

35
i have set up a xhr , all the accents on the page are showed ok on ff an safari
Expand|Select|Wrap|Line Numbers
  1. function _cms() {
  2. cms.open("GET", 'cms.php', true);
  3. cms.setRequestHeader('If-Modified-Since','Wed, 05 Apr 2006 00:00:00 GMT');
  4. if (cms.overrideMimeType) {
  5. cms.overrideMimeType('text/html; charset=ISO-8859-1')
  6.          }
  7. else{cms.setRequestHeader("Content-type", "text/html; charset=ISO-8859-1"); }
  8. cms.onreadystatechange = function() {
  9. if(cms.readyState == 1){loader();}
  10. if(cms.readyState == 4 && cms.status == 200){
  11. document.getElementById("body_").innerHTML = cms.responseText;
so i setup a if condition for the overrideMimeType method because ie dont recognize it and blocks the xhr then i set a else with a setRequestHeader thinking this one would handle the no showing accents on ie (french accents) but it still does not work on ie, any thoughts? regards.
Apr 1 '09 #1
5 3329
acoder
16,027 Expert Mod 8TB
Set the header in the PHP file.
Apr 2 '09 #2
arty
35
the called file has the php extension but it's a normal html file so i cant do that
Apr 2 '09 #3
acoder
16,027 Expert Mod 8TB
Try using meta tags to set the content type. Have you tried to load the page directly without Ajax?
Apr 2 '09 #4
arty
35
if the page is loaded without ajax the accents are ok, i am calling this page with the AHAH method(response text) so i cannot include a metatag in the called file(only in the calling file wich is the file that calls all the files),it is strange as the overridemymetype method works for ff and safari but i cannot find a else statement to make it work for ie
Apr 3 '09 #5
dmjpro
2,476 2GB
Can you show me the error details?
And what 's exactly happening please tell me :)
I feared you didn't obtain XML HTTP Request for IE. Show me the code for obtaining XML HTTP Request.
Apr 4 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: chepiok | last post by:
I'd like to send email containing accents (french one) using PHP command mail(). The content of these emails are store in text files. I'de like to know : - text file format (encoding, with...
2
by: c w | last post by:
Can anyone point me in the right direction? Using Oracle 9i, Pro*C and Excel. I am trying to print french accents from the Oracle DB using Pro*C to extract the necessary info and sent the result...
0
by: Wim Roffal | last post by:
When I sort texts with accents the accents end up in the end instead of near the same text without accent. For example, the 3 composers Händel, Haydn and Holst will appear in the order Haydn,...
2
by: Ghislain Benrais | last post by:
Hi everybody, I have xml documents with external entities for my accents that I want to output properly with php function domxml_open_file. I can't get my accents on a linux-apache server (I get...
2
by: michaelb | last post by:
Descobri uma coisa legal e to mandando para vocês... Como colocar acentos em aplicação com Ajax! Na pagina que recebe os dados: (Na primeira linha).. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
13
by: bussiere bussiere | last post by:
hi i'am making a program for formatting string, or i've added : #!/usr/bin/python # -*- coding: utf-8 -*- in the begining of my script but str = str.replace('Ç', 'C') str =...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
3
by: bss | last post by:
Dear All, I have developing a French website using PHP & Ajax. In that I tried to display some French texts from mysql database using Ajax. Form local I got the text from db with Correct...
7
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.