It is currently Sat Feb 11, 2012 8:55 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [Solve] UnicodeEncodeError
PostPosted: Tue Jan 19, 2010 2:32 pm 
Offline

Joined: Thu Jul 16, 2009 9:38 am
Posts: 112
Hello everybody,

I have this error "UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 101: ordinal not in range(128)"

when i want to send a mail with special character (like é,è)

I know then we talk about this problem here:
[url]
topic13261.html
[/url]

But i need a solution and i don't found it.

Thank you for your help;


Last edited by Rudy on Fri Dec 02, 2011 4:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 20, 2010 5:51 pm 
Offline

Joined: Thu Jul 16, 2009 9:38 am
Posts: 112
I found a solution here:

http://www.openobject.com/forum/post49894.html#49894


Top
 Profile  
 
 Post subject: Re: UnicodeEncodeError
PostPosted: Fri Dec 02, 2011 3:17 pm 
Offline

Joined: Mon Nov 28, 2011 6:15 pm
Posts: 1
Location: Shanghai
pls let me know how to solve the question.

I cannot understand French


Top
 Profile  
 
 Post subject: Re: UnicodeEncodeError
PostPosted: Fri Dec 02, 2011 3:21 pm 
Offline

Joined: Thu Jul 16, 2009 9:38 am
Posts: 112
To summarize the topic, we just say than you can find the patch here:

https://bugs.launchpad.net/openobject-s ... bug/493548


Top
 Profile  
 
 Post subject: Re: UnicodeEncodeError
PostPosted: Fri Dec 02, 2011 4:44 pm 
Offline

Joined: Tue Aug 23, 2011 10:26 pm
Posts: 43
Location: Rosario, Argentina
You can try with this

Code:
message = "Here goes the message string"
message = message.decode('utf-8')


It works for me when writing with accents.


Top
 Profile  
 
 Post subject: Re: UnicodeEncodeError
PostPosted: Fri Dec 02, 2011 4:45 pm 
Offline

Joined: Thu Jul 16, 2009 9:38 am
Posts: 112
Yes now the problem is solve, they correct it in the new version of OERP.

The message was in 2010, i forget to close the topic.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP