UTF8 in Mochiweb

85 views
Skip to first unread message

Kevin Albrecht

unread,
Mar 1, 2012, 9:36:51 AM3/1/12
to moch...@googlegroups.com
I noticed that mochiweb_html.erl uses mochiutf8:codepoint_to_bytes/1 instead of Erlang's built-in unicode:characters_to_binary/1. Is there a particular reason for this choice, or is it merely a remnant from before the unicode module was a part of Erlang?

If the latter, should the call be replaced with a call to unicode:characters_to_binary/1?

Regards,
Kevin Albrecht

Bob Ippolito

unread,
Mar 1, 2012, 10:10:33 AM3/1/12
to moch...@googlegroups.com
This is a remnant from before the unicode module was a part of Erlang. It could be replaced, although the benefit of doing so is probably rather small.

--
You received this message because you are subscribed to the Google Groups "MochiWeb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mochiweb/-/i2z3lvyaAVsJ.
To post to this group, send email to moch...@googlegroups.com.
To unsubscribe from this group, send email to mochiweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mochiweb?hl=en.

Reply all
Reply to author
Forward
0 new messages