New issue report by SonOfLilit:
HTML-Tidy has a default option to replace ' ' with 0xA0
non-breaking-space.
A colleague tells me that this chokes robot with the error message
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in
position 70: ordinal not in range(128)
If need be, I can reproduce an html file that causes this error, but it
should be trivial.
-- Aur
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
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
Comment #1 by janne.t.harkonen:
Can you produce the file, please.
Test data is parsed in parts, and our purpose is to support Unicode in all
parts.
It seems that the Unicode support is not universal, so an example file
should help to
pinpoint the problem.
Thanks for reporting the issue
Issue attribute updates:
Status: Accepted
Comment #2 by laukpe:
I suspect that the problem could be file not having correct encoding. It
needs to be
specified as explained at
http://robotframework.googlecode.com/svn/trunk/doc/userguide/RobotFrameworkUserGuide.html#supported-file-formats
As Janne already commented, having an example file would be nice.
Comment #3 on issue 136 by pekka.klarck: UnicodeEncodeError: 'ascii' codec
can't encode character u'\xa0'
http://code.google.com/p/robotframework/issues/detail?id=136
Can't do much for this without an example that causes the failure. If such
a file can
be provided this issue can be reopened.
Comment #5 on issue 136 by pekka.klarck: UnicodeEncodeError: 'ascii' codec
can't encode character u'\xa0'
http://code.google.com/p/robotframework/issues/detail?id=136
Ok, need to take a look at this again.
Comment #6 on issue 136 by pekka.klarck: UnicodeEncodeError: 'ascii' codec
can't encode character u'\xa0'
http://code.google.com/p/robotframework/issues/detail?id=136
(No comment was entered for this change.)
Comment #7 on issue 136 by pekka.klarck: UnicodeEncodeError: 'ascii' codec
Comment #8 on issue 136 by pekka.klarck: UnicodeEncodeError: 'ascii' codec
can't encode character u'\xa0'
http://code.google.com/p/robotframework/issues/detail?id=136
I tested the test3.html attached by ChrisPrinos and was able to execute it
successfully both with Python 2.5.1 and Jython 2.2 on my Mac.
I just noticed that ChrisPrinos had been using Jython 2.5 which we don't
fully
support yet (see issue 198). The biggest problem with Jython 2.5, and
problems are at
least partly due to workarounds we have for Unicode issues with Jython 2.2.
We'll
investigate these problems in the future when Jython 2.5 gets more ready
(I've
understood the concentrate on Unicode themselves in the near future) and we
start RF
2.1 development.
SonOfLilit, which Python/Jython version you were using? An example about
your problem
would still be nice if you can reproduce the problem.