Strange caracter encoding

Wagner Bruna wagner.bruna+mercurial at gmail.com
Wed Aug 5 10:33:32 CDT 2009


Hello,

On Wed, Aug 5, 2009 at 9:43 AM, Diego Oliveira<lokimad at gmail.com> 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.

The Brazilian Portuguese Windows editions use Windows-1252 (aka
"iso-8859-1") encoding for file contents. And as Matt commented, for
some reason it uses a different code page (850) for the console...

You can configure the console to use Windows-1252: set Lucida as the
console font (the default won't work...) and run "chcp 1252" at the
command prompt. I don't know a good way to make this permanent, but
you may use HKEY_CURRENT_USER\Software\Microsoft\Command
Processor\AutoRun to change it again on every cmd.exe prompt.

Hope that helps,
Wagner



More information about the Mercurial-devel mailing list