let s = "Привет!"
echo s[1] # will not return 2nd symbol "п"
How to get n-th symbol from unicoded string?
Possible duplicate of https://forum.nim-lang.org/t/1067, however this is what I came up with:
import unicode
let s = "Привет!"
echo s.runeStrAtPos(1)
Which outputs "р" https://play.nim-lang.org/#ix=3BQU
Warning: as stated in documentation, this proc may lead to performance issues, so someone might come up with a better and more efficient solution.