Ignore control characters on import

svn: r742
This commit is contained in:
Don Allingham 2002-02-02 20:50:17 +00:00
parent 7ccb8977aa
commit f49eeb5685

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])