mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-07 11:23:40 +00:00
fix:excel_reader.py unicode bug (#2095)
This commit is contained in:
parent
21c282e659
commit
b8f1e098f6
@ -224,7 +224,7 @@ def process_function(function):
|
|||||||
|
|
||||||
def is_chinese(text):
|
def is_chinese(text):
|
||||||
for char in text:
|
for char in text:
|
||||||
if "一" <= char <= "鿿":
|
if "\u4e00" <= char <= "\u9fa5": # BMP中的常用汉字范围
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user