mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 17:09:27 +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."""
|
part only. Does not get any codes or anything! Returns a string."""
|
||||||
data = []
|
data = []
|
||||||
while 1:
|
while 1:
|
||||||
line = self.rfile.readline().decode('ascii').strip()
|
line = self.rfile.readline().decode('utf8').strip()
|
||||||
if line == '.':
|
if line == '.':
|
||||||
break
|
break
|
||||||
data.append(line)
|
data.append(line)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf8 -*-
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2004, Jeremiah Fincher
|
# Copyright (c) 2002-2004, Jeremiah Fincher
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@ -36,6 +37,7 @@ class DictTestCase(PluginTestCase):
|
|||||||
self.assertNotError('dict slash')
|
self.assertNotError('dict slash')
|
||||||
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
self.assertNotRegexp('dict web1913 slash', 'foldoc')
|
||||||
self.assertError('dict ""')
|
self.assertError('dict ""')
|
||||||
|
self.assertRegexp('dict eng-fra school', 'école')
|
||||||
|
|
||||||
def testDictionaries(self):
|
def testDictionaries(self):
|
||||||
self.assertNotError('dictionaries')
|
self.assertNotError('dictionaries')
|
||||||
|
Loading…
Reference in New Issue
Block a user