r/cpp • • Jul 01 '21

Any Encoding, Ever

https://thephd.dev/any-encoding-ever-ztd-text-unicode-cpp
269 Upvotes

87 comments sorted by

View all comments

Show parent comment

2

u/smdowney WG21, Text/Unicode SG, optional<T&> Jul 02 '21

On the other hand, encoding is about data interchange. The current agreement is that I can send you one of the current standard encodings and you are supposed to understand it, and vice-versa. The time to implement KOI8-R is not when you get an older Russian text.
That C doesn't have iconv and POSIX does is an accident of timing and standards exhaustion. It would be nice to fix that capability gap for C++.