Strange caracter encoding

Matt Mackall mpm at selenic.com
Wed Aug 5 08:33:06 CDT 2009


On Wed, 2009-08-05 at 09:43 -0300, Diego Oliveira wrote:
> Hello crew,
> 
> 
> I did commit a Brazilian Portuguese translation but I'm having
> problems in the character encoding 
> in my windows box, the mac one works just fine.
> 
> 
> The console output for the string "diretório" came as "diret≤rio",
> anyone knows what i need to do
> to solve this.

Windows, in its apparently infinite wisdom, has different default
encodings for the console and the GUI, which means only one of the
following can behave correctly:

hg log > foo
type foo

hg log > foo
notepad foo

Mercurial chooses to make the latter work. You can work around this with
--encoding <whatever codepage your console is using>. Or just ignore it.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list