Skip to content

samirkumardas/dataviewUTF-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

dataviewUTF-8

Javascript method for converting ArrayBuffer to utf-8 String

How to use?

You will have to add utf8.js file in your project.

I am assuming that You have already input buffer from websocket or ajax

var dataview = new DataView(buffer);
dataview.getString(0,100); // get string of 100 lengths from the offset 0

About

Javascript encoding method from ArrayBuffer to utf-8 String

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published