3 ms·
> it's only latin-1 or utf-8 There’s no other way, is it? You basically have to have the complete string library re-implemented for each supported multi-byte e
by avian 8y ago
> it's only latin-1 or utf-8
There’s no other way, is it? You basically have to have the complete string library re-implemented for each supported multi-byte encoding.
- rurban 8y agoNo. Foreign encodings are internally converted to utf-8 via the Encoding library and IO layers. The string library is only done for latin-1 and utf-8. The only trouble is that you have to remember the original encoding, if you need that information. It's stored nowhere. E.g. to write to a file in the original encoding you have to open it with the correct IO layer. perl6 got that fixed.