print ubyte as (ascii) string
rtcvb32 at yahoo.com
Thu Dec 30 16:00:59 UTC 2021
On Thursday, 30 December 2021 at 09:34:27 UTC, eugene wrote:
> The buffer contains (ascii) string terminated with '\n'. In
> order to print it not as an array of numbers (buf is 1024 bytes
> long), but as usual string I do
Few years ago i asked a similar question, not to do UTF-8 but to
do Ascii. I was working on a tool for Morrowind after determining
the strings were not variable in length and instead much like
ascii fixed at 256 combinations.
The answer i ended up with was a quick conversion to a UTF in
order to print it. Seems you might have to convert to Latin-1.
Here's the old thread.
More information about the Digitalmars-d-learn