I’m writing a HTTP server and using trivial-utf-8:write-utf-8-bytes to response the request. I heard Babel is like trivial-utf-8 but more efficient, so I want to give it a try. After search for a while I can’t find any similar function like write-utf-8-bytes. Did I misunderstand something? Thx.
I’m writing a HTTP server and using trivial-utf-8:write-utf-8-bytes to response the request. I heard
Share
Yes, Babel has string-to-octets, which will produce the result you need with
:encoding :utf-8.