I come from python where you can use \'string[10]\' to access a character in sequence. And if the string is encoded in Unicode it will give me expected results. However when
To access codepoints individually, use u32string, which represents a string as a sequence of UTF-32 code units of type char32_t.
u32string
char32_t
u32string ramp = U"ÐðŁłŠšÝýÞþŽž"; cout << ramp << "\n"; cout << ramp[5] << "\n";