diff options
author | mathieui <mathieui@mathieui.net> | 2012-09-13 09:48:35 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-09-13 09:50:48 +0200 |
commit | 0bd55a27f2f14dd434c828f4a061f366b39dda92 (patch) | |
tree | 3fc157c7ae71c0c100fa201ab2ef96bdf7411097 /src/tabs.py | |
parent | c2828cdd29749609b4e16d2d461ac6b39c822573 (diff) | |
download | poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.gz poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.bz2 poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.xz poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.zip |
Fix TBs when the system is not in utf-8 by default
(force every file opening to be with the utf-8 encoding)
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index e3d2de36..60f98abc 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2239,7 +2239,7 @@ class RosterInfoTab(Tab): self.core.information('The file %s does not exist' % filepath, 'Error') return try: - handle = open(filepath, 'r') + handle = open(filepath, 'r', encoding='utf-8') lines = handle.readlines() handle.close() except IOError: |