Skip to content

What's the easiest way to encode a String to utf-8? #110

Closed Answered by czheo
sa- asked this question in Q&A
Discussion options

You must be logged in to vote

maybe this

from Vector import DynamicVector
from String import String

let vec : DynamicVector[SI8] = String("hello world").buffer

Replies: 6 comments 15 replies

Comment options

You must be logged in to vote
1 reply
@sa-
Comment options

Answer selected by sa-
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@abhinav-upadhyay
Comment options

@survuvi
Comment options

@mfranzon
Comment options

Comment options

You must be logged in to vote
11 replies
@mfranzon
Comment options

@d3v3us
Comment options

@d3v3us
Comment options

@sa-
Comment options

@d3v3us
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants