function getStrLength(str) {
  var cArr = str.match(/[^\x00-\xff]/ig);
  return str.length + (cArr == null ? 0 : cArr.length);
}

05-01 03:31