Ascii matters
Sean Kelly
sean at invisibleduck.org
Wed Aug 22 19:52:10 PDT 2012
On Aug 22, 2012, at 5:07 PM, bearophile <bearophileHUGS at lycos.com> wrote:
> Jonathan M Davis:
>
>> and the fact that using ASCII really shouldn't be encouraged,
>
> For generic text I agree with you, using UTF-8 is safer and better.
> But there is plenty of scientific/technical text-encoded data that is in ASCII, and for both practical and performance reasons in D I want to process it as a sequence of chars (or a sequence of ubytes, as you say). So for some kinds of data that encouragement is a waste of your time.
I'm clearly missing something. ASCII and UTF-8 are compatible. What's stopping you from just processing these as if they were UTF-8 strings?
More information about the Digitalmars-d
mailing list