Navigation Menu

Skip to content
macton edited this page Mar 19, 2013 · 7 revisions

Synopsis

utf8       = require('dot-utf8');
utf8String = utf8.encode( jsString );

Description

Encodes a JavaScript native string (UCS-2) into UTF-8.

Return Value

UTF-8 bytes encoded into a JavaScript string, with bytes represented as code units from 0x00 to 0xFF.


Return to API documentation