baboons / samba4-gaps

Google Apps Password Sync for Samba4
15 stars 9 forks source link

\xe9 problem #3

Closed sfonteneau closed 9 years ago

sfonteneau commented 11 years ago

Hello

I'm sorry for my bad english but I'm french. Many thank you for your tools we use for 1500 user since September. We are in education.

We encounter problems with gaps, he sends us the following error: 'UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)' gaps

the problem would accent

This error is to exit the application

I'm not a developer, you can help me.?

Thank you very much

baboons commented 11 years ago

Hi,

e9 is referred to hex e9 in unicode as é, see http://www.fileformat.info/info/unicode/char/e9/index.htm. Somewhere in the code it depends on ascii which is an issue.

How ever I never tried my application with letters like this, can you tell me if you have any username or mail account with é? If so I could make a fix for it.

Regards Johan

9 sep 2013 kl. 17:50 skrev sfonteneau notifications@github.com:

Hello

I'm sorry for my bad english but I'm french. Many thank you for your tools we use for 1500 user since September. We are in education.

Nous rencontrons des problemes avec gaps, il nous envoie l'erreur : 'UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)' gaps

the problem would accent

I'm not a developer, you can help me.?

Thank you very much

— Reply to this email directly or view it on GitHub.

sfonteneau commented 11 years ago

thank you for your reply. There is no accent in the username and there is no accent in the email address. The focus is in the password. Our biggest problem is that it kills gaps when there is an accent. He should continue. Or while he supports the accent. thank you very much for your help.

baboons commented 11 years ago

I see what's going on now.

I need some time to reproduce this error and I haven't much time over this week. If you like you could play around with

password.encode('ascii','ignore')

That might do the trick for you. If not I will have an update as soon as I got some time for it.

9 sep 2013 kl. 19:50 skrev sfonteneau notifications@github.com:

thank you for your reply. There is no accent in the username and there is no accent in the email address. The focus is in the password. Our biggest problem is that it kills gaps when there is an accent. He should continue. Or while he supports the accent. thank you very much for your help.

— Reply to this email directly or view it on GitHub.

sfonteneau commented 11 years ago

Great Thank you !

I'll try !

sfonteneau commented 11 years ago

Sorry but I do not know where to put "password.encode ('ascii', 'ignore')"

You have anything new?

baboons commented 9 years ago

Sorry for a very late fix. But I experienced the same issue recently and have update a fix for this.