Welcome to utfu đ
Attempts to fix busted character encodings carried over from legacy text formats. This is a work-in-progress and not yet ready for production use.
Install
yarn add utfu || npm install utfu
Usage
Pass a string to either method, hex or txt. The former tries to do a regex search and replace for unicode chars. The latter tries to do a search and replace for characters in their typical misrendering (see chart here).
import utfu from 'utfu'
const dirtyText = 'On a certain level, it�s like shouting �fire� in a crowded theater.'
const cleanText = utfu.hex(dirtyText) || utfu.txt(dirtyText)
Run tests
yarn run test
Author
đ¤ Daniel Sieradski daniel@self.agency
đ¤ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a âď¸ if this project helped you!
This README was generated with â¤ď¸ by readme-md-generator