Duplicated from Omnibus/Unicode-Escape
a6e566a 799aaaf 971d14f 799aaaf
1
2
3
4
5
#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"))