0.0.5 • Published 11 years ago

turkish-char-encoding v0.0.5

Weekly downloads
28
License
-
Repository
github
Last release
11 years ago

turkish-char-encoding

This is a simple tool for NodeJS to convert ISO-8859-9 and Windows-1254 encoded Strings and Buffers into UTF-8 strings.

Installation

npm install turkish-char-encoding

Testing

Tests use mocha and should.

npm test

Usage

var encoder = require('turkish-char-encoding');

// for win-1254
var str = encoder('win-1254').toUTF8('ÖöÇ窺İıĞğÜü'); // your win-1254 text/buffer
// for iso-8859-9
var str = encoder('iso-8859-9').toUTF8('ÖöÇ窺İıĞğÜü'); // your iso-8859-9 text/buffer
etc...