View Single Post
ישן 26-11-07, 21:03   # 3
reXtea
חבר מתקדם
 
reXtea's Avatar
 
מיני פרופיל
תאריך הצטרפות: Dec 2006
מיקום: באר שבע
גיל: 31
הודעות: 374
שלח הודעה באמצעות MSN אל reXtea

reXtea לא מחובר  

PHP קוד:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header('Content-Type: text/html; charset=windows-1255');

function 
con ($text)
{
    return 
preg_replace("/\xD7([\x90-\xAA])/e","chr(ord(\${1})+80)",$text);

שים את זה בתחילה של העמוד AJAX הPHP,
ותעביר כל משתנה שאתה מקבל בפונקציה con.
זה אמור לעבוד.... העמודים צריכים להיות בקידוד רגיל לא צריך UTF8.
__________________
Amir fridman
-----------------------
Professional website developer.
xhtml, css, javascript, xml, ajax, php, mysql
  Reply With Quote