DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

WTF-8 encoder/decoder.

Whitepaper: https://simonsapin.github.io/wtf-8/

from functorflow import ff

r = ff('wtf-8').encode('\uD800\uDC01')
print(r) # '\xF0\x90\x80\x81'

r = ff('wtf-8').decode('\xF0\x90\x80\x81')
print(r) # '\uD800\uDC01'
Enter fullscreen mode Exit fullscreen mode

Stop wasting time installing and configuring Python libraries. Use them right away. FunctorFlow instantly auto-install and auto-config them for you.

Top comments (0)