Używam pewnego oprogramowania, które korzysta z xAjaksa. Nie pytam autora, bo jego odpowiedź jest: zainstaluj najnowszą wersję, a z pewnych względów tego nie mogę zrobić.
Jest tak - strona jest w ISO, na niej dane. Wszystko się wyświetla ok. Klikam przycisk i ładuje się przez ajaksa formularz (z tymi samymi danymi, co je wcześniej widać), w którym pliterki są złe (romby z "?"). Te same teksty - na stronie ok, na formularzu źle. Niżej jest fragment z Firebuga, gdzie widać nagłówki i odpowiedź. Nie wiem, czy FF to przekodowuje, ale tam jest ok.
To "źle" jest w źródle w linii 107 (akurat tu nie ma formularza, tylko komunikat, że mnie wylogował, żeby było czytelniej). Powycinałem niektóre fragmenty, dając [...].
Wcześniej w kodzie xajaxa dałem charset="iso-8859-2" na sztywno, gdzie znalazłem, że coś wypisywał takiego.
Ktoś ma pomysł, jako to naprawić?
Marcin
>>>>>> Nagłówki odpowiedzi <<<<<<<<<<<<<<<<<<<
Kod
Date Thu, 11 Mar 2010 13:54:29 GMT
Server Apache/2
Set-Cookie a8ab34a1c4eaf34ae979c9d87f4d01b7=68cf7bbc15981cc93bb51e8a401715f4; path=/
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 11 Mar 2010 13:54:31 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Vary Accept-Encoding
Content-Encoding gzip
Keep-Alive timeout=2, max=50
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
Server Apache/2
Set-Cookie a8ab34a1c4eaf34ae979c9d87f4d01b7=68cf7bbc15981cc93bb51e8a401715f4; path=/
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Thu, 11 Mar 2010 13:54:31 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Vary Accept-Encoding
Content-Encoding gzip
Keep-Alive timeout=2, max=50
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
>>>>>> Nagłówki zapytania <<<<<<<<<<<<<<<<<<<
Kod
Host test.jejmiasto.pl
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 FirePHP/0.4
Accept text/html, */*
Accept-Language pl,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
Referer http://test.jejmiasto.pl/index.php?option=com_content&task=view&id=21&Itemid=64
Cookie fboard_settings[current_view]=flat; fboard_settings[member_id]=62; 77c5aeeaffd02ff686952579dbbf4b62=6dc7f84a96e66e5bed86f02be9ff14ed; a8ab34a1c4eaf34ae979c9d87f4d01b7=9ca2f327a9df9de64b1a92b0b6b68ddd; PHPSESSID=a67b27b0c364e41f38b121fe694ff37b
Authorization Basic bWlhc3RveHg6bWlhc3RvcXE=
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 FirePHP/0.4
Accept text/html, */*
Accept-Language pl,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
Referer http://test.jejmiasto.pl/index.php?option=com_content&task=view&id=21&Itemid=64
Cookie fboard_settings[current_view]=flat; fboard_settings[member_id]=62; 77c5aeeaffd02ff686952579dbbf4b62=6dc7f84a96e66e5bed86f02be9ff14ed; a8ab34a1c4eaf34ae979c9d87f4d01b7=9ca2f327a9df9de64b1a92b0b6b68ddd; PHPSESSID=a67b27b0c364e41f38b121fe694ff37b
Authorization Basic bWlhc3RveHg6bWlhc3RvcXE=
>>>>>> Odpowiedź <<<<<<<<<<<<<<<<<<<
<?xml version="1.0" encoding="ISO-8859-2"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" charset="UTF-8"> /* <![CDATA[ */ try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; }; xajax.config.requestURI = "http://test.jejmiasto.pl/index2.php?option=com_jreviews&url=reviews/edit/id43&width=800&height=600&random=1268315670389"; xajax.config.statusMessages = false; xajax.config.waitCursor = false; xajax.config.version = "xajax 0.5 rc1"; xajax.config.legacy = false; xajax.config.defaultMode = "asynchronous"; xajax.config.defaultMethod = "POST"; /* ]]> */ </script> <script type="text/javascript" charset="UTF-8"> /* <![CDATA[ */ window.setTimeout( function() { var scriptExists = false; try { if (xajax.isLoaded) scriptExists = true; } catch (e) {} if (!scriptExists) { alert("Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?\nURL: <a href="http://test.jejmiasto.pl/components/com_s2framework/vendors/xajax_05/xajax_js/xajax_core.js"%3b%29;" target="_blank">http://test.jejmiasto.pl/components/com_s2...core.js");</a> } }, 2000); /* ]]> */ </script> <script type='text/javascript' charset='UTF-8'> /* <![CDATA[ */ xajax_xajaxDispatch = function() { return xajax.request( { xjxfun: 'xajaxDispatch' }, { parameters: arguments } ); }; /* ]]> */ </script> <link rel="stylesheet" href="templates/jej_miasto/css/template_css.css" type="text/css" /> <link rel="shortcut icon" href="http://test.jejmiasto.pl/images/favicon.ico" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" /> <meta name="robots" content="noindex, nofollow" /> </head> <body class="contentpane"> </html>
>>>>>>>>>>>>> źródło <<<<<<<<<<<<<<<<<<<
<meta content="text/html; charset=ISO-8859-2 " http-equiv="Content-Type"> <script charset="UTF-8" type="text/javascript"> /* <![CDATA[ */ try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; }; xajax.config.requestURI = "http://test.jejmiasto.pl/index.php?option=com_content&task=view&id=21&Itemid=64"; xajax.config.statusMessages = false; xajax.config.waitCursor = false; xajax.config.version = "xajax 0.5 rc1"; xajax.config.legacy = false; xajax.config.defaultMode = "asynchronous"; xajax.config.defaultMethod = "POST"; /* ]]> */ </script> [...] </head> <body> [...] <div style="width: 100%;" class="jr_customFields"> <div class="fieldGroup"> <table cellspacing="0" cellpadding="0" border="0" class="fieldGroupTable"> </tr> </tr> </div> [...] <!-- 1268314544 --><div id="tooltip" style="display: none;"><h3></h3><div class="body"></div><div class="url"></div></div><div id="tooltip" style="display: none;"><h3></h3><div class="body"></div><div class="url"></div></div><div id="tooltip" style="display: none;"><h3></h3><div class="body"></div><div class="url"></div></div><div id="TB_overlay" class="TB_overlayBG"></div><div id="TB_window" style="margin-left: -415px; width: 830px; margin-top: -320px; display: block;"><div id="TB_title"><div id="TB_ajaxWindowTitle"></div><div id="TB_closeAjaxWindow"><a id="TB_closeWindowButton" href="#">close</a> or Esc Key</div></div><div style="width: 800px; height: 595px;" id="TB_ajaxContent"> <link type="text/css" href="templates/jej_miasto/css/template_css.css" rel="stylesheet"> <link href="http://test.jejmiasto.pl/images/favicon.ico" rel="shortcut icon"> <meta content="text/html; charset=ISO-8859-2" http-equiv="Content-Type"> <meta content="noindex, nofollow" name="robots"> </body> </html>