|
|
|
|
|
by Pet_Ant
846 days ago
|
|
> Please, for modern software UTF-8 everywhere is the way to go! I think the real answer is to have a String interface and then allow for different implementations. There are times when it should be ASCII 8-bit. Or UCS 4. UCS 2 is reasonable. It's about trade-offs and how much constant width is worth. Just like you can use across different list and set implementations for the algorithmic profiles, you should be able to chose string types. Something UTF8#"Hello World" or EBDIC#"IBM". Inserting, appending etc, a character that cannot fit into a given string should throw an exception. |
|