ציטוט:
נכתב במקור על ידי בניה
תנסה:
קוד:
function cp1255_utf8(s) {
var test = /([à-ú])/g;
return(s.replace
(test,
function($0) {
// alert($0.charCodeAt(0));
return(String.fromCharCode(215) + String.fromCharCode(($0.charCodeAt(0)+80)));
}
)
);
}
|
איפה לשים את זה?
זה ג'אווה סקריפט, ב asp אני משתמש ב VBS.