mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
f2addf4d0f
+ remove processing taylor's version
9 lines
254 B
Python
9 lines
254 B
Python
def handle_unicode(string: str):
|
|
"""
|
|
Try resolving unicode characters, else escape them.
|
|
"""
|
|
return string.encode("utf-16", "replace").decode("utf-16")
|
|
# try:
|
|
# except:
|
|
# return string.encode("unicode_escape").decode("utf-8")
|