News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

בעיה עם עברית

Started by ronzil, July 04, 2009, 04:38:56 PM

Previous topic - Next topic

ronzil

הגדרתי בCSS:
@charset "UTF-8"
ובקובץ PHP: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

עכשיו כל פעם שאני לוקח משדה (input) את מספר האותיות (שאני רושם בעברית) הוא מכפיל לי אותם בשתיים לדוגמא:
$lol = אב;
echo strlen($lol)

אני מקבל 4.

arod

אתה רוצה להשתמש ב UTF-8 עבור מחרוזות ב

mb_strlen()

Advertisement: