Open LeonNikolai opened 1 month ago
Can you run System.get_env()
inside an iex
shell?
I don't know what encoding Windows environment variables have or if Erlang does some kind of conversion between the OS the Erlang runtime but whatever we get back from Erlang is not valid Unicode which is what we expect.
This seems to be either an Erlang issue or that you have a bad encoding in your environment variables.
As a note I can do this on macos:
FOO="π" iex git:(mainβ2|)
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]
Interactive Elixir (1.17.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.get_env("FOO")
"π"
I have had my computer name be π (a rocket emoji) for a while, i recently decided to learn and install Erlang, Elixir, and Phoenix. When i reached Phoenix's installation step of "mix archive.install hex phx_new" i crashed. I struggled to figure out why. Until I realized its something Unicode, when i got a suspicion. I preceded to rename my computer to pure ascii characters, and I could run it just fine. I'm not sure if this is a Hex, Erlang, or Phoenix Issue, but from what I can tell its a Hex one.