diff options
author | wm4 <wm4@nowhere> | 2014-10-23 11:13:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-23 11:13:59 +0200 |
commit | df6435be5024f89b3066d176fbfc304984c750f7 (patch) | |
tree | d4c358ab549f0061b9d141a3fe1f65c39c278b8d /audio/audio.c | |
parent | 34373032b516e54843f673377bf89f506a303092 (diff) |
manpage: ipc: comment about invalid UTF-8
Some rationale for the documented/suggested behavior:
It's not really clear what to do with invalid UTF-8, since JSON simply
can't transport this information. Maybe you could transfer such strings
as byte arrays, but that would be very verbose and inconvenient, and
would pose the problem that it's hard to distinguish between strings
encoded in this way and actual arrays.
There are many other ways how this could be handled. For example, you
could replace invalid sequences with '?'. Or you could do it like
Python, and use certain reserved unicode codepoints to "tunnel" through
invalid bytes.
Which of these works really depends on the application. And since this
can be done entirely on the byte level (invalid UTF-8 sequences can
appear only in strings in our case), it's best to leave this to the
receiver.
Diffstat (limited to 'audio/audio.c')
0 files changed, 0 insertions, 0 deletions