[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 9 04:52:20 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14519
--- Comment #28 from Martin Nowak <code at dawg.eu> ---
(In reply to Vladimir Panteleev from comment #25)
> Here, neither converting everything to UTF-8 or verifying that it is valid UTF-8 works, because
> text-based protocols often embed raw binary data. The program only needs to
> parse the ASCII text parts, so the ideal solution would be a string handling
> library which never decodes UTF-8 (something D doesn't have).
Yes, and you would be better off to handle such protocols as ubyte.
--
More information about the Digitalmars-d-bugs
mailing list