https://issues.dlang.org/show_bug.cgi?id=14519
--- Comment #28 from Martin Nowak <c...@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. --