| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1511,6 +1511,9 @@ def settext(self, s, c=None, p=False): | |||
| 1511 | 1511 | self.c = c | |
| 1512 | 1512 | ||
| 1513 | 1513 | if s: | |
| 1514 | + if not py3 and isinstance(s, unicode): | ||
| 1515 | + s = s.encode(getpreferredencoding()) | ||
| 1516 | + | ||
| 1514 | 1517 | if self.c: | |
| 1515 | 1518 | self.win.addstr(s, self.c) | |
| 1516 | 1519 | else: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments