#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'))