top | item 46759406 (no title) jhasse | 1 month ago Perfect is the enemy of good. Or do you think the current mess is better? discuss order hn newest jstimpfle|1 month ago std::string _cannot_ be made "always UTF-8". Is that really so contentious?You can still use it to contain UTF-8 data. It is commonly done. jhasse|1 month ago I never said always. Just add some new methods for which it has to be UTF-8. All current functions that need an encoding (e.g. text IO) also switch to UTF-8. Of course you could still save arbitrary binary data in it. load replies (1)
jstimpfle|1 month ago std::string _cannot_ be made "always UTF-8". Is that really so contentious?You can still use it to contain UTF-8 data. It is commonly done. jhasse|1 month ago I never said always. Just add some new methods for which it has to be UTF-8. All current functions that need an encoding (e.g. text IO) also switch to UTF-8. Of course you could still save arbitrary binary data in it. load replies (1)
jhasse|1 month ago I never said always. Just add some new methods for which it has to be UTF-8. All current functions that need an encoding (e.g. text IO) also switch to UTF-8. Of course you could still save arbitrary binary data in it. load replies (1)
jstimpfle|1 month ago
You can still use it to contain UTF-8 data. It is commonly done.
jhasse|1 month ago