alert(encodeURIComponent('текст').length + ' vs ' + encodeURIComponent(encodeURIComponent('текст')).length)