Duplicated from Omnibus/Unicode-Escape
a6e566a 799aaaf 971d14f 934254b
1
2
3
4
5
6
#import gradio as gr name="this name" def unicode_escape(s): return "".join(map(lambda c: rf"U+E{ord(c):04x}", s)) #print(unicode_escape("Hello, World!\n")) print((u'U+E0064').encode('latin-1'))