- set_ugly_no_encode(true);
- u= url_parse (url, NULL);
- set_ugly_no_encode(false);
+ struct iri *i = iri_new();
+ /* url was given in the command line, so use locale as encoding */
+ set_uri_encoding (i, opt.locale, true);
+ u= url_parse (url, NULL, i);