Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richard-viney/iso_8859
Gleam library to decode ISO/IEC 8859 binary data into native UTF-8 strings.
https://github.com/richard-viney/iso_8859
Last synced: 3 months ago
JSON representation
Gleam library to decode ISO/IEC 8859 binary data into native UTF-8 strings.
- Host: GitHub
- URL: https://github.com/richard-viney/iso_8859
- Owner: richard-viney
- License: mit
- Created: 2024-01-17T22:43:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T23:21:14.000Z (6 months ago)
- Last Synced: 2024-07-11T21:50:31.368Z (4 months ago)
- Language: Gleam
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-gleam - iso_8859 - [📚](https://hexdocs.pm/iso_8859/) - Gleam library to decode ISO/IEC 8859 binary data into native UTF-8 strings. (Packages / Formats)
README
# Gleam ISO/IEC 8859 Decoder
This Gleam library decodes ISO/IEC 8859 binary data into a native string. All 15
ISO/IEC 8859 encodings are supported.When targeting JavaScript the native `TextDecoder` is used instead.
See https://en.wikipedia.org/wiki/ISO/IEC_8859 for details on the ISO/IEC 8859
encodings.[![Package Version](https://img.shields.io/hexpm/v/iso_8859)](https://hex.pm/packages/iso_8859)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/iso_8859/)## Usage
To add this library to your Gleam project:
```sh
gleam add iso_8859
```To use it:
```gleam
> iso_8859.decode_bytes(<<0xB4, 0xEC, 0xE0>>, iso_8859.Part5)
"Дьр"
```Its documentation can be found at .
## License
This library is published under the MIT license, a copy of which is included.