Ignore control characters on import

svn: r742
This commit is contained in:
Don Allingham 2002-02-02 20:50:17 +00:00
parent d6f1a8b1c5
commit 548d8903f5

View File

@ -80,7 +80,10 @@ def ansel_to_latin(s):
buff = cStringIO.StringIO()
while s:
c0 = ord(s[0])
if c0 > 127:
if c0 <= 31:
head = ' '
s = s[1:]
elif c0 > 127:
try:
if c0 >= 0xE0:
c1 = ord(s[1])