Javascript String To Byte Array Javascript, To get UTF-8, you'll have to convert the String yourself.