turkish-char-encoding

a tool to convert turkish character encodings

Usage no npm install needed!

<script type="module">
  import turkishCharEncoding from 'https://cdn.skypack.dev/turkish-char-encoding';
</script>

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