We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f1c3f commit 9872a48Copy full SHA for 9872a48
pyrogram/parser/utils.py
@@ -34,7 +34,7 @@ def add_surrogates(text):
34
35
def remove_surrogates(text):
36
# Replace each surrogate pair with a SMP code point
37
- return text.encode("utf-16", "surrogatepass").decode("utf-16")
+ return text.encode("utf-16", "surrogatepass").decode("utf-16", "ignore")
38
39
40
def replace_once(source: str, old: str, new: str, start: int):
0 commit comments