An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# String encoding conversions in Julia using iconv

[![Build Status](https://github.com/AStupidBear/Iconv.jl/workflows/CI/badge.svg)](https://github.com/AStupidBear/Iconv.jl/actions)
[![Coverage](https://codecov.io/gh/AStupidBear/Iconv.jl/branch/master/graph/badge.svg)](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"笨熊"
```