Enconding problem using mercurial on Mac OS X

View: New views
2 Messages — Rating Filter:   Alert me  

Enconding problem using mercurial on Mac OS X

by Sergio Lopes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I did a search on the the list archives but I couldn't find anything  
related to my problem.

I've started using mercurial for a small Java project. I configured  
nothing on NetBeans IDE's preferences, only installed mercurial and  
just started using it. Everything was going fine until I wrote a  
commit message with non ASCII charaters.

It seems mercurial doesn't like those and complains with " 'ascii'  
codec can't decode byte 0x8d in position 86: ordinal not in  
range(128)!]". Is there anything I need to set up so that mercurial  
will behave nicely with non ASCII charaters in the commit log? I think  
this is a python problem, at least from what I could find on the web,  
though much of it was related to django, but can NetBeans IDE do  
anything about it?

I'm using NetBeans IDE 6.7.1, with all the existing updates, Mac OS X  
10.5.8, Python 2.5.1. My mercurial version is 1.3.1.

Thanks,

Sérgio Lopes

Re: Encoding problem using mercurial on Mac OS X

by Marián Petráš-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some information on the topic:

    http://mercurial.selenic.com/wiki/Character_Encoding_On_OSX

I suggest that you report a bug against product "VersionControl",
component "Mercurial"
(https://netbeans.org/bugzilla/enter_bug.cgi?product=versioncontrol&component=Mercurial&version=6.8).

As a quick workaround, try settings environment variable HGENCODING to
'utf-8' before starting NetBeans.

Marián


Sergio Lopes napsal(a):

> Hi,
>
> I did a search on the the list archives but I couldn't find anything
> related to my problem.
>
> I've started using mercurial for a small Java project. I configured
> nothing on NetBeans IDE's preferences, only installed mercurial and just
> started using it. Everything was going fine until I wrote a commit
> message with non ASCII charaters.
>
> It seems mercurial doesn't like those and complains with " 'ascii' codec
> can't decode byte 0x8d in position 86: ordinal not in range(128)!]". Is
> there anything I need to set up so that mercurial will behave nicely
> with non ASCII charaters in the commit log? I think this is a python
> problem, at least from what I could find on the web, though much of it
> was related to django, but can NetBeans IDE do anything about it?
>
> I'm using NetBeans IDE 6.7.1, with all the existing updates, Mac OS X
> 10.5.8, Python 2.5.1. My mercurial version is 1.3.1.
>
> Thanks,
>
> Sérgio Lopes