https://github.com/astupidbear/iconv.jl
String encoding conversions in Julia using iconv
https://github.com/astupidbear/iconv.jl
Last synced: 7 months ago
JSON representation
String encoding conversions in Julia using iconv
- Host: GitHub
- URL: https://github.com/astupidbear/iconv.jl
- Owner: AStupidBear
- License: mit
- Created: 2019-10-06T10:33:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T04:12:48.000Z (about 4 years ago)
- Last Synced: 2025-02-21T09:46:38.550Z (8 months ago)
- Language: Julia
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# String encoding conversions in Julia using iconv
[](https://github.com/AStupidBear/Iconv.jl/actions)
[](https://codecov.io/gh/AStupidBear/Iconv.jl)## Installation
Make sure `iconv` is installed on your system, then
```julia
using Pkg
pkg"add Iconv"
```On Windows, you can install `iconv` using [Scoop](https://scoop.sh/)
```
scoop install iconv
```## Usage
```julia
iconv("笨熊", "UTF-8", "GBK") == togbk("笨熊") == g"笨熊"
iconv(g"笨熊", "GBK", "UTF-8") == toutf8(g"笨熊") == b"笨熊"
```