From: Jeff King Date: Wed, 08 Jun 2011 21:51:32 GMT Subject: Re: Git-mediawiki : Encoding problems in perl Message-ID: <20110608215130.GA13021@sigill.intra.peff.net> In-Reply-To: On Wed, Jun 08, 2011 at 08:03:26PM +0200, Jérémie NIKAES wrote: > - I pull the "Eté.mw" file from mediawiki > - I edit it > - When I commit it I get this message from git : > [master sha1] commit message > 1 files changed [...] > create mode 100644 "Bl\303\251.mw" > > As a result, when I parse commit information, the title of the file is > indeed Bl\303\251... so a new page is created on the mediawiki. Ick. I hope you aren't parsing the output of "git commit"; it's not guaranteed to be stable. But if you are parsing "diff", then yes, filenames with high-bit characters (or special characters like tab or double-quote) may be quoted C-style, and you should be unquoting them. Or, as Matthieu suggested, use "-z" to get a NUL-terminated, non-quoted version. -Peff