GithubHelp home page GithubHelp logo

fdawgs / fix-latin1-to-utf8 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 42 KB

Node.js module to fix errors when converting Latin-1 encoded text to UTF-8

Home Page: https://npmjs.com/package/fix-latin1-to-utf8

License: MIT License

JavaScript 100.00%
iso-8859-1 iso8859-1 latin-1 latin1 utf8 windows-1252 windows1252 encoding

fix-latin1-to-utf8's Introduction

fix-latin1-to-utf8

GitHub release npm version Build status Coverage status code style: Prettier

Node.js module to fix errors when converting Latin-1 encoded text to UTF-8

Overview

When converting Latin-1 (or Windows-1252) encoded text to UTF-8, some characters may be incorrectly converted. This module fixes those errors.

Installation

Install using npm:

npm i fix-latin1-to-utf8

Example usage

Please refer to the JSDoc comments in the source code or the generated type definitions for information on the available options.

const fixLatin1ToUtf8 = require("fix-latin1-to-utf8");

const latin1String =
	"This is a UTF-8 string that was converted from Latin-1‚ but the conversion was not great.";
const utf8String = fixLatin1ToUtf8(latin1String);

console.log(utf8String);
// This is a UTF-8 string that was converted from Latin-1, but the conversion was not great.

Contributing

Contributions are welcome, and any help is greatly appreciated!

See the contributing guide for details on how to get started. Please adhere to this project's Code of Conduct when contributing.

Acknowledgements

License

fix-latin1-to-utf8 is licensed under the MIT license.

fix-latin1-to-utf8's People

Contributors

dependabot[bot] avatar fdawgs avatar github-actions[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.