Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Omnibus/Unicode-Escape
Omnibus
/
Unicode-Escape-dev
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
934254b
Unicode-Escape-dev
/
app.py
Omnibus
Update app.py
934254b
verified
about 1 year ago
raw
Copy download link
history
blame
Safe
198 Bytes
#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'
))