473,406 Members | 2,259 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,406 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 3330
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.