title: Javascript utf-8 substr and length function
body: <p>I am trying to do a substr on a UTF-8 string like हिन्दी.</p>
  
  <p>The problem is that it becomes totally screwed up=> with some weird box in the end (does not show here, although i copy pasted) (its something like [00 02]): हिन...</p>
  
  <p>okay this is how it appers after using substr function:</p>
  
  <p><a href="http://img27.imageshack.us/img27/765/capturexv.png" rel="nofollow noreferrer">alt text http://img27.imageshack.us/img27/765/capturexv.png</a></p>
  
  <p>Wondering if there is some function to solve this problem? <em>Atleast I want to remove that funny box.</em></p>
  
  <p>Thank you for your time.</p>