On 2009-09-19 08:39 (+0900), Osamu Aoki wrote:

> I am looking for a method to convert URL with non-ascii character 
>
> from
>
>   http://fr.wikipedia.org/wiki/Param%C3%A8tres_r%C3%A9gionaux
>
> to
>
>   http://fr.wikipedia.org/wiki/Paramètres_régionaux
>
> with some short script or command.  What is the easiest way?

The simplest is probably a script like this:

    #!/bin/bash
    printf '%b\n' "${1//%/\\x}"

Give URL as the first argument.

-- 
Please Cc me any replies. I might miss them otherwise.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to