Re: Gedankenexperiment on method duck type safety

hi,

i’m curious if there is a better (in the means of faster) way to
transform an utf8 encoded string to ascii, than this

str.unpack(‘U*’).pack(‘c*’)

g phil

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs