In Rust a string is a sequence of unicode scalar values.  I personally find it unfortunate that they dictate the storage of it at the API level, but that is a necessary evil for presenting a consistent ABI with foreign code.<p>I did not know that strings in Ruby have encodings.  Is there a reason for that?  I personally don&#x27;t like mixing characters and opaque byte sequences as they are very different.