[Mediawiki-l] Changing password for user with special utf characters in name

Brion Vibber brion at pobox.com
Mon Dec 19 02:44:38 UTC 2011


On Sat, Dec 17, 2011 at 9:52 PM, Dan Nessett <dnessett at yahoo.com> wrote:

> I am trying to use changePassword.php to change the password of a user
> (who has forgotten his password). The name of the user has the spanish
> character tilde-n in it (UTF-8 \xF1). However, I can't figure out how to
> specify this character in the --user= value. When I try to use \xF1, the
> maintenance script sees it as the literal character string "xF1". If I
> use \\xF1, the script sees the literal character sring "\xF1". I can't
> figure out how to get the script to accept the unicode string encoding.
>

If you have a normal UTF-8 terminal, just type or cut-n-paste the "ñ"
however you normally would. If for some reason this isn't available (sounds
like you're expecting an 8-bit locale on your terminal?), I'd recommend
using the user-id with the --userid parameter instead. :)

-- brion


More information about the MediaWiki-l mailing list