Skip to content

Commit f7f762e

Browse files
committed
Update encoding.py
1 parent 410b4a8 commit f7f762e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/util/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def tis620_to_utf8(text: str)->str:
2626
tis620_to_utf8("¡ÃзÃÇ§ÍØµÊÒË¡ÃÃÁ")
2727
# output: 'กระทรวงอุตสาหกรรม'
2828
"""
29-
return text.encode('cp1252').decode('tis-620')
29+
return text.encode("cp1252", "ignore").decode("tis-620")

0 commit comments

Comments
 (0)