|Subject:||Re: New jrpc.el JSONRPC library|
|Date:||Sun, 20 May 2018 17:18:00 +0100|
> From: address@hidden (João Távora)
> Date: Sun, 20 May 2018 16:43:59 +0100
> Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden,
> > - I think `string-bytes' isn't guaranteed to return the number of
> > UTF-8 bytes. Rather you should encode the string explicitly to a
> > unibyte string using `encode-coding-string', and then use
> > `no-conversion' for the process coding systems.
> I think Eli has already answered this authoritatively.
Note that my response did assume you will bind coding-system-for-write
to utf-8 around the call to process-send-string, because relying on it
being so by default is asking for trouble.
|[Prev in Thread]||Current Thread||[Next in Thread]|