string type in Nim represents text in an unspecified encoding, typically UTF-8 on modern systems.
string for binary data (see language.binary)
- The text encoding is undefined for
stringtypes and is instead determined by the source of the data (usually UTF-8 for terminals and text files)
- When dealing with passwords, differences in encoding between platforms may lead to key loss