I'm using standard httpc client in erlang, for sending/receiving request to some service. Sometimes I have a Cyrillic path in my URL. How can I URL-encode Cyrillic URLs? Thank you. ~/erl$erl Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.8.5 (abort with ^G) 1> Encoded = edoc_lib:escape_uri("абвгдеё"). "%c0%b0%c0%b1%c0%b2%c0%b3%c0%b4%c0%b5%c1%91" 2> http_uri:decode(Encoded). [192,176,192,177,192,178,192,179,192,180,192,181,193,145] You may use list_to_binary to use as binary. Renato Albano I had some troubles with the escape