|
@@ -183,9 +183,9 @@ class getAvatarView(TemplateView):
|
|
|
return self.getAvatar(filePath)
|
|
|
|
|
|
def get(self, request, *args, **kwargs):
|
|
|
- request.encoding = 'gb2312'
|
|
|
+ request.encoding = 'utf-8'
|
|
|
filePath = kwargs.get('filePath', '')
|
|
|
- filePath.encode(encoding='gb2312', errors='strict')
|
|
|
+ filePath.encode(encoding='utf-8', errors='strict')
|
|
|
return self.getAvatar(filePath)
|
|
|
|
|
|
def getAvatar(self, filePath):
|