Ignore control characters on import
svn: r742
This commit is contained in:
parent
7ccb8977aa
commit
f49eeb5685
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user