Jahaja / psdash

A linux system information web dashboard using psutils and flask
Creative Commons Zero v1.0 Universal
2.42k stars 326 forks source link

Exception thrown when searching a log containing non-ASCII characters #13

Closed aumo closed 10 years ago

aumo commented 10 years ago

Also fails when searching for a non-ascii character. Opening the file using codecs.open(filename, 'r', 'utf8') would be probably cleaner and avoid future errors. Also, #10's fix in log.html would not be needed.

Jahaja commented 10 years ago

Non-ascii is apparently beyond my normal use-case :) I'll merge this for now and take a look at the codecs.open variant later. Thanks!