View Source UchardetModule (ElixirEncodingDetect v0.1.0)
判別に使用したいbinaryを入力すると{:ok, "エンコーディング名"}か{:error, "エラー内容"}を返す。 エンコーディング名は https://www.freedesktop.org/wiki/Software/uchardet/ を参照。
Summary
Functions
= File.read("priv/textfile")
Functions
= File.read("priv/textfile")
= UchardetModule.detect_encoding_name(file)