Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error when output.xml contains latin characters #76

Closed
xNok opened this issue Jul 26, 2019 · 2 comments
Closed

Parse error when output.xml contains latin characters #76

xNok opened this issue Jul 26, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@xNok
Copy link

xNok commented Jul 26, 2019

It seems that the code is not encoding free (Given #41)

table_td.string = str(kw.kwname)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 36: ordinal not in range(128)

On solution may be to sanitise the xml input to make robotframework-metrics error free. It is frustrating that the script does not go throught for 1 unrecognised character. However it would not matter if that character was replace by ?.

u.encode('ascii', 'replace')
@adiralashiva8 adiralashiva8 added the enhancement New feature or request label Jul 28, 2019
@adiralashiva8 adiralashiva8 added bug Something isn't working and removed enhancement New feature or request labels Sep 10, 2019
@xNok
Copy link
Author

xNok commented Nov 8, 2019

This is solved as of v3.1.4, Howerver v3.1.4 as not been release to pypi so impossible to get it from pip install

@adiralashiva8
Copy link
Owner

Use following command to install latest changes until new release!

pip install git+https://github.com/adiralashiva8/robotframework-metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants