mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Dict: Fix encoding.
This commit is contained in:
parent
8e6aa116d3
commit
add5e07d97
@ -72,7 +72,7 @@ class Connection:
|
||||
part only. Does not get any codes or anything! Returns a string."""
|
||||
data = []
|
||||
while 1:
|
||||
line = self.rfile.readline().decode('ascii').strip()
|
||||
line = self.rfile.readline().decode('utf8').strip()
|
||||
if line == '.':
|
||||
break
|
||||
data.append(line)
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- coding: utf8 -*-
|
||||
###
|
||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
||||
# All rights reserved.
|
||||
@ -36,6 +37,7 @@ class DictTestCase(PluginTestCase):
|
||||
self.assertNotError('dict slash')
|
||||
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
||||
self.assertError('dict ""')
|
||||
self.assertRegexp('dict eng-fra school', 'école')
|
||||
|
||||
def testDictionaries(self):
|
||||
self.assertNotError('dictionaries')
|
||||
|
Loading…
Reference in New Issue
Block a user