cdd1969 / pygwa

Ground Water Analyzer tool for Hydrographs. flowchart, python, pyqtgraph, pyqt
GNU General Public License v2.0
7 stars 0 forks source link

non UTF8 characters crash #12

Open cdd1969 opened 8 years ago

cdd1969 commented 8 years ago

Crashes when non standard characters are used ( german/russian)

Where:

  1. evaluate node
    text = str(self.text.toPlainText())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 186-190: ordinal not in range(128)
  1. Hover window
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pyqtgraph/flowchart/Flowchart.py", line 921, in hoverOver
    self.hoverText.setPlainText("%s.%s = %s" % (term.node().name(), term.name(), val))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 43: ordinal not in range(128)
cdd1969 commented 8 years ago

https://github.com/pyqtgraph/pyqtgraph/issues/297