fix-utf8

2.0.1 • Public • Published

fix-utf8

A function that tries its best to recover lost Latin Unicode characters, based on the UTF-8 Encoding Debugging Chart

Also takes the opportunity to normalize the passed string, replacing any combined group of characters by their corresponding glyph.

Install

$ npm install fix-utf8

How-To

import fixUtf8 from 'fix-utf8'

fixUtf8("L'avenir des idées")
// => "L'avenir des idées"

See Also

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fix-utf8

      Weekly Downloads

      762

      Version

      2.0.1

      License

      MIT

      Unpacked Size

      10.6 kB

      Total Files

      4

      Last publish

      Collaborators

      • maxlath