Skip to content

Commit

Permalink
FIX: 处理utf-8数据
Browse files Browse the repository at this point in the history
  • Loading branch information
perchouli committed Aug 1, 2014
1 parent 190e9ef commit 2d1572d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion duoshuo/__init__.py
@@ -1,11 +1,14 @@
# -*- coding:utf-8 -*-
# coding: utf-8
#!/usr/bin/env python
#
# Copyright 2012 Duoshuo
#
__version__ = '0.1'

import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import urllib
import urllib2
import warnings
Expand Down

0 comments on commit 2d1572d

Please sign in to comment.