You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
The replace method in utils.py starts with checking if the input is of type string. This is not ideal because in python 2.x the strings are often of type unicode and that renders some of the functionalities of persiantools unusbale.
For instance, this won't work in persiantools:
digits.fa_to_en(u'۱۲۳۴')
This can be address by allowing the unicode data-type here
The text was updated successfully, but these errors were encountered:
The
replace
method inutils.py
starts with checking if the input is of typestring
. This is not ideal because in python 2.x the strings are often of typeunicode
and that renders some of the functionalities of persiantools unusbale.For instance, this won't work in persiantools:
This can be address by allowing the
unicode
data-type hereThe text was updated successfully, but these errors were encountered: