I have a form
<%= select f, :user_id, ["刺繡等等我": "2", "wow": "3"] %>
If I use only english language, it works perfectly. But chinese, or any other returns error
** (ArgumentError) argument error
:erlang.binary_to_atom("刺繡等等我", :utf8)
(elixir) src/elixir_parser.yrl:512: :elixir_parser.yeccpars2_93/7
I believe it has do to with the encoding. How can I convert the string to the acceptable format?
Thanks in advance!