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() buff = cStringIO.StringIO()
while s: while s:
c0 = ord(s[0]) c0 = ord(s[0])
if c0 > 127: if c0 <= 31:
head = ' '
s = s[1:]
elif c0 > 127:
try: try:
if c0 >= 0xE0: if c0 >= 0xE0:
c1 = ord(s[1]) c1 = ord(s[1])