如何将一些具有阿拉伯/波斯数字的字符串转换为英文?
就像我有:
str1 = "١۲١۲"
str2 = "12١۲"
str3 = "some string that contains persian digits like ١۲"
是否有任何函数可以将其编码为英文,如果字符串包含这样的数字以将其转换为最终结果将是:
str1 = "1212"
str2 = "1212"
str3 = "some string that contains persian digits like 12"
谢谢