mbcs_rs v0.1.1 MbcsRs

Charactor encoding support for Elixir. using Ruster and Rust lang encoding crate

Link to this section Summary

Functions

Mbcs Charactors decode to UTF-8

UTF-8 strings encode to Mbcs Charactors

Link to this section Functions

Link to this function decode!(binary, whatwg_encoding)
decode!(binary(), binary()) :: binary()

Mbcs Charactors decode to UTF-8

Examples

iex> MbcsRs.encode!("日本語", "SJIS") |> MbcsRs.decode!("SJIS")
Link to this function encode!(string, whatwg_encoding)
encode!(binary(), binary()) :: binary()

UTF-8 strings encode to Mbcs Charactors.

Examples

iex> MbcsRs.encode!("日本語", "SJIS") |> MbcsRs.decode!("SJIS")