[erlang-questions] strings vs binaries

Steve Davis steven.charles.davis@REDACTED
Thu Aug 20 16:30:26 CEST 2015


Actually, I don’t seem to have ever faced the problem of "get characters 3 to 11”. And I’ve dealt with some pretty diverse protocols...

If I did, I guess I’d use a small function that calls unicode:characters_to_list… extract them and convert the result back to binary!

regs,
/s

> On Aug 18, 2015, at 10:25 PM, zxq9 <zxq9@REDACTED> wrote:
> 
> <<"binaryではそんなに簡単ではないが、stringの方では問題ないですね。"/utf8>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150820/c191be67/attachment.htm>


More information about the erlang-questions mailing list