How to decode file from cp1047 to UTF-8 and encode to cp1047?

How to decode file form cp1047 to UTF-8 and decode a file to cp1047 using Elixir?

I think your best bet is to have a look at GitHub - processone/iconv: Fast encoding conversion library for Erlang / Elixir · GitHub, and see if that works for your needs :grin:

There is also GitHub - tallakt/codepagex: Elixir string encoding conversion - like iconv but pure Elixir · GitHub, which seems to be used a lot.

Take a look at my thread some months ago: Sharing with the community: text transcoding libraries

Basically, I went with erlyconv.

Resolved with this PR add cp1047 character set by brunolouvem · Pull Request #1 · eugenehr/erlyconv · GitHub in the erlyconv