Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 362 by thus0.petrus: UnicodeEncodeError: ('ascii', u'aa\xe0aa', 2, 3, 'ordinal not in range(128)')
http://code.google.com/p/robotframework/issues/detail?id=362

I would like to write plain ascii text with accents in a file (I'm French)
and test that the writing was correct.

I've used this action in an html file (encoded in utf-8)

* Write 1 accent in ASCII
* Create File With Encoding
* C:/temp/foobar.txt
* aaàaa
* ascii

*
* ${createdFile}=
* Get File
* C:/temp/foobar.txt

*
* Should be Equal as Strings
* ${createdFile}
* aaàaa

When I run pybot, I've get this error :

UnicodeEncodeError: ('ascii', u'aa\xe0aa', 2, 3, 'ordinal not in range
(128)')

If I change 'ascii' in 'utf-8', I don't have this error and the test pass.
=> how can I write ascii files with accents ?

Here is some informations of the versions I'm using :
- robotframework 2.1
- python 2.6.2, Windows XP

Merci

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to