danhper / elixir-temp

Temporary files and directories for Elixir

Home Page:https://hex.pm/packages/temp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UTF8 Support

seemsindie opened this issue · comments

Hello, I just wanted to ask if there is a utf8 support? Like you would do using File.open/2

File.open("myfile.xml", [:write, :utf8])

Right now I am getting this error:

Erlang error: :no_translation

Bit old topic but you can pass mode: [:write, :utf8] to the Temp.open function.

Thanks for sharing. Hopefully, this should do the trick so I'll close this issue.