Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

turkish-char-encoding

artsince53MIT0.0.5

a tool to convert turkish character encodings

readme

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...