Javascript String Length Differs From PHP mb_strlen
<p>I use <code>document.getElementById("text").value.length</code> to get the string length through javascript, and <code>mb_strlen($_POST['text'])</code> to get the string length by PHP and both differs very much. Carriage returns are converted in javascript before getting the string length, but I guess some characters are not being counted.</p>

<p>For example,</p>

<blockquote>
  <p>[b]15. Umieszczanie obrazka z logo na stronie zespołu[/b]</p>
</blockquote>

<p>This block of text is calculated 57 in javascript and 58 in PHP. When the text gets long, the difference increases. Is there any way to overcome this?</p>
