Skip to content

saighost/node-gbk-dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status gbk-dict

a gbk to utf8 dictionary and tool for converting gbk buffer to utf-8 string

http://saighost.github.com/node-gbk-dict

Installing with npm

npm install gbk-dict

Usage

var dict = require('gbk-dict').init();

dict.gbkToUTF8(buf);

Example usage:

var dict = require('gbk-dict').init();
var fs = require('fs');

fs.readFile('./gbk-test.txt', function (err, data) {
	if(err) throw err;
    console.log(dict.gbkToUTF8(data));
});

About

Decoder GBK butter to UTF8 string with only js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published