mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-01 17:56:44 -04:00
make onionshare use utf-8 to support unicode filenames, partial fix for #141
This commit is contained in:
parent
43f3f4123a
commit
8514f74b1c
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
import os, inspect, hashlib, base64, hmac, platform, zipfile
|
||||
from itertools import izip
|
||||
|
||||
# hack to make unicode filenames work (#141)
|
||||
import sys
|
||||
reload(sys)
|
||||
sys.setdefaultencoding("utf-8")
|
||||
|
||||
|
||||
def get_platform():
|
||||
p = platform.system()
|
||||
if p == 'Linux' and platform.uname()[0:2] == ('Linux', 'amnesia'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue