[erlang-questions] Strings - deprecated functions
Loïc Hoguin
essen@REDACTED
Thu Nov 23 12:46:46 CET 2017
On 11/23/2017 03:45 AM, Fred Hebert wrote:
> But overall, you can't escape Unicode. Work with JSON? There it is.
> HTTP? There again. URLs? You bet. File systems? Hell yes! Erlang modules
> and app files: also yes!
Nitpick but...
HTTP itself is ASCII. There used to be support for characters in the
128..255 range but they are now obsolete.
URLs with Unicode must be encoded. Headers must be ASCII, if you need
Unicode there's https://tools.ietf.org/html/rfc8187 to the rescue, again
via urlencoding.
My point is, you can go very far with HTTP without ever bothering with
Unicode. And it seems like this will be true in the foreseeable future,
as the upcoming httptre is mostly clarifications to the current httpbis
specifications in preparation for QUIC.
I suspect the same is true for most of the older protocols. And I would
say that's a good thing as it considerably reduces the complexity of the
protocol.
Of course applications themselves are another matter entirely, and if
you deal with anything you haven't written yourself, chances are you
will need to deal with Unicode.
--
Loïc Hoguin
https://ninenines.eu
More information about the erlang-questions
mailing list