npm package: @rbxts/utf8-validate
Description: UTF8 validator
Author: ophidie
Latest version: 2.0.2

<p align="center">
  <h1 align="center">utf8-validate</h1>
  <p align="center">
    A utf8 validator written in luau
    <br />
  </p>
</p>

<p align="center">
	<img href="https://www.npmjs.com/package/@rbxts/utf8-validate" alt="NPM Version" src="https://img.shields.io/npm/v/%40rbxts%2Futf8-validate?logo=npm">
	<a href="https://pesde.daimond113.com/packages/ophidiedev/utf8_validate"><img alt="pesde" src="https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2FOphidieDev%2Futf8-validate%2Frefs%2Fheads%2Fmain%2Fpesde.toml&query=version&prefix=ophidiedev%2Futf8_validate%40&style=plastic&label=pesde&color=F19D1E&logo=data:image/svg%2bxml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OS42MDI1IDBMOTIuOTAzOCAyNVY3NUw0OS42MDI1IDEwMEw2LjMwMTI3IDc1VjI1TDQ5LjYwMjUgMFpNMTQuMzAxMyAyOS42MTg4TDQ5LjYwMjUgOS4yMzc2TDg0LjkwMzggMjkuNjE4OFY3MC4zODEyTDQ5LjYwMjUgOTAuNzYyNEwzMy42MTQ4IDgxLjUzMTlWNjcuMzg0OEMzNC41MTY3IDY4LjUwNzEgMzUuNjM4OCA2OS40MjE1IDM2Ljk4MSA3MC4xMjc5QzM4Ljk3MDEgNzEuMTQ4IDQxLjAzNTcgNzEuNjU4IDQzLjE3NzkgNzEuNjU4QzQ2LjQ0MiA3MS42NTggNDkuMTQ1MiA3MC44OTI5IDUxLjI4NzMgNjkuMzYyOUM1My40ODA1IDY3Ljc4MTggNTUuMTEyNiA2NS43NjcyIDU2LjE4MzYgNjMuMzE5QzU3LjA5MTU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DYzLjUzNzggMzcuMTM0IDY0LjA4NEMzOC42MTMxIDY0LjY5NjEgNDAuMTE3NyA2NS4wMDIxIDQxLjY0NzggNjUuMDAyMUM0NC4wNDQ5IDY1LjAwMjEgNDYuMDg1IDY0LjE4NjEgNDcuNzY4MSA2Mi41NTRDNDkuNDUxMiA2MC45MjE5IDUwLjI5MjggNTguNjAxMiA1MC4yOTI4IDU1LjU5MjFDNTAuMjkyOCA1NC4wNjc5IDUwLjA3NjkgNTIuNzI3IDQ5LjY0NTEgNTEuNTY5MloiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KPC9zdmc+" /></a>
	<a href="https://wally.run/package/ophidiedev/utf8-validate"><img alt="wally" src="https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2FOphidieDev%2Futf8-validate%2Frefs%2Fheads%2Fmain%2Fwally.toml&query=package.version&prefix=ophidiedev%2Futf8_validate%40&style=plastic&label=wally&color=AD4646&logo=data:image/svg%2bxml;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAACHFBMVEUAAACtRkatR0atRka0VEutRkavWketRkatRkatRUWtRkatRkatRkauRkasR0etRkatRkasR0etREStRkatREStRkatRkasRkauRUWtRkauR0etRUWtRka9cEutRkatRkasR0erRUW9cEu7dEmfQEDotXS3Xkm9cEutRkatRkbGfVOuRUW9cEu+cUu+cky9cUyuRUWuR0e8b0uvRUXPi1vSkmDanmbAdE7GfVK+cUvPjVutRka+cUy9cEvPjFy9cEvJg1fLhVq9cUu+cEqtRUXBeE+sR0e9c0q/bUm+bVCOODfCd0/Tk1/LiVrIglXkrW+9cEvdo2m+ckzMiVm9cEvOiVrOjV2+aVHBdk7SkV/FgVXCeFHKhljBd0++dU+8aE+QQzm4W07KhFfDeVDCcFe8YlG9Z02+cUvNjFzAdVDBe1LWk2C+ckyqSUm8cUvyxX6tRka9cEvxw33wwnzptnbtvHnruXfdo2ruvnrkrHDZnGXWmGPUlGHFfFK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maGO2ZqZINcSBrtrT56WLo01WN4s5X6nNvmUKnG6CCDVfikoLkmZhCPEtmTAHbHhkk6oRohFu2kcAFVRaGSSTALer4agNY2utWxCz7BtgVdRaQNfNUlryLqW1FN/7otsnLRgLUB63byXn2MA0nlIGWcur0ifE6BVr1dolXc/qkg1dFSBsuSDb0cd9wj1YrFwc0kQl/MGac0Yxpgelv12sYHUUUjTjSaVMf4dl77hn0SUSf4mlxNX1iCuVmkEDNOTel8JFTTTUlFvOEnUiVtVNKuN96drzKVZqQ53ZzneeI2KbXTlO9jwRduaJsMy8pbESf4JEfTWUV8k8IbwFZlYJ+1/26FoO48GT2yzujEHkLpn1Zs5BZibvoPq2px0sJc+tNyDyXOagUCQzlihBN20PaGmpsmdG7vntHVeFQv3jCBlqqXLPb6nu4yODcr+s9ddv7a2PW5qjJpROPhtmZB1+BUhMLjaRfJIJ/rBDzp0svGGPmRF3x73s6Wmsvtnc8vR27jNNygeGZZ+XAS6cm1C4b9ZZ/F+GDgmOMOf8iBzn/G+gINvMBhXg8gAAAABJRU5ErkJggg==" /></a>
</p>

> [!NOTE]
> The original source code for the validator used in this project can be found [here](https://github.com/FourierTransformer/utf8validator)

## Features
- Validate whether a string contains only valid utf8 characters

## Installation
Add to your `wally.toml`:
```toml
utf8_validate = "ophidiedev/utf8-validate@2.0.2"
```

Add to your `pesde.toml`:
```toml
utf8_validate = { name = "ophidiedev/utf8_validate", version = "^2.0.2" }
```

Add to your `package.json`:
```json
"@rbxts/utf8-validate": "^2.0.2"
```

## Read More
If you are interested in reading more about the problem this package solves, consider reading [this story](https://blog.vorlias.nz/2023/09/breaking-an-economy-using-a-sign) by community member [Vorlias](https://vorlias.nz/).

## Licenses
- The original source code for the validator (utf8validator.lua) is MIT Licensed the original source can be found [here](https://github.com/FourierTransformer/utf8validator).