OcelotProject / Ocelot

Ocelot is open-source linking for life cycle assessment. See https://ocelot.space/ for more information.
Other
26 stars 7 forks source link

Encoding errors in HTML report rendering #65

Closed cmutel closed 8 years ago

cmutel commented 8 years ago

The log file is UTF-8, and has lines like:

{'data': ['rare earth oxides production from bastnäsite concentrate', 'samarium europium gadolinium concentrate, 94% rare earth oxide'], 'time': 1471939582.492297, 'type': 'table element'}

And this is loaded into the report processor as unicode strings:

`In [6]: line Out[6]: {'data': ['rare earth oxides production from bastnäsite concentrate', 'samarium europium gadolinium concentrate, 94% rare earth oxide'], 'time': 1471939582.492297, 'type': 'table element'}

In [7]: type(line['data'][0]) Out[7]: str`

However, in the HTML report there are encoding errors: rare earth oxides production from bastnäsite concentrate.