Unicode conversion helpers for Str #7390
Labels
dev backend
Specific to the dev backends
good first issue
Good for newcomers
roc_std
The roc stdlib used by hosts
from Zulip thread
We currently have a few utility functions for conversion from bytes to UTF-8 strings and back, which just got slightly updated in this PR. As a means to properly support differently encoded command line arguments across different operating systems (needed for roc-lang/basic-cli#289), we want to provide conversion functions from
List U8
/List U16
/List U32
toStr
. Here are the planned signatures:The
*_lossy
variants should replace invalid codepoints with the Unicode replacement character,"\uFFFD"
.The text was updated successfully, but these errors were encountered: