Skip to content

Commit

Permalink
Merge pull request MeanEYE#224 from cmallwitz/utf8_fix
Browse files Browse the repository at this point in the history
Issues 217 - Fix for handling file names with non ASCII characers
  • Loading branch information
MeanEYE committed May 3, 2016
2 parents e8a1d08 + 0be546f commit 5d2e3ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
except ImportError:
pass

# Sunflower has to handle UTF-8 encoded strings while interacting with GTK
import sys
reload(sys)
sys.setdefaultencoding("utf-8")

class Sunflower(Gtk.Application):
"""Main application instance."""
Expand Down

0 comments on commit 5d2e3ac

Please sign in to comment.