Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Erlangでコネクタを使用しています。「controler?q=value」のようなJavascriptからリクエストを受け取ります。Unicodeで値を送信すると、ブラウザはエンコードされた文字列を送信します。
http://127.0.0.1:8001/controler?q=%D1%82%D0%B5%D1%81%D1%82
この文字列をUTF-8に変換するにはどうすればよいですか?
しばらく前に同様の目的でモジュールを作成しました:https ://gist.github.com/816291 次のように使用できます。
io:format("~ts~n",[uri:decode_uri_component("%D1%82%D0%B5%D1%81%D1%82")]). тест ok
Unicode モジュールを確認することをお勧めします。