Giter VIP home page Giter VIP logo

eiconv's Introduction

Build Status Hex.pm version Hex.pm Downloads Hex.pm Documentation Erlang Versions License

Erlang NIF wrapper for iconv

An Erlang wrapper for the character set conversion utility iconv.

Getting started

Include as a dependency

Using rebar3, add the dependency to your rebar.config file:

{deps, [
    {eiconv, "1.0.0"},
    %% ...
]}.

and run $ rebar3 compile.

Use eiconv module

To convert from utf-8 to ascii:

ToConvert = "123",
{ok, Converted} = eiconv:convert("utf-8", "ascii", ToConvert)),
io:format("Converted '~s' to '~s'~n", [ToConvert, Converted])

eiconv API

Using convert/3

{ok, Converted} = eiconv:convert("utf-8", "ascii", "123"))

Using CD (Conversion Descriptor)

{ok, CD} = eiconv:open("utf8", "ascii"),
{ok, Converted} = eiconv:conv(CD, "123")),
ok = eiconvclose(CD)

iconv API

Using convert/3

Converted = eiconv:convert("utf-8", "ascii", "123"))

(Note it return directly the converted text and not a tuple {ok, Converted})

Authors

Wrapper provided by Maas-Maarten Zeeman and the Zotonic team.

eiconv's People

Contributors

arturz avatar ddeboer avatar g-andrade avatar mmzeeman avatar monsieurv avatar mworrell avatar rustkas avatar scrogson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

eiconv's Issues

Publish non-alpha to hex?

First off, thank you to all who worked on/maintain this ❤️ .

Related issue: mailman-elixir/mailman#78 (comment)

Hex does not allow users to push packages with alpha dependencies. It returns the following error:

** (Mix) A stable package release cannot have a pre-release dependency

Is there any reason the version pushed to hex is an alpha? Is there any reason not to bump to 1.0.0? Doing so would allow other packages to use the hex version as a dependency.

cc @ddeboer
also related: #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.