[web-devel] unicode domain and path

Michael Snoyman michael at snoyman.com
Tue Jun 14 05:40:39 CEST 2011


On Tue, Jun 14, 2011 at 6:23 AM, Jeremy Hughes <jedahu at gmail.com> wrote:
> Hi,
>
> The type of both host and path fields of http-enumerator's Request
> type is ByteString/Ascii. Does this mean using unicode URLs vai
> encodeUtf8 is a no go?
>
> J

All it means is you have to handle the encoding yourself. I'm not
familiar with the rules for Unicode domain names, but encodeUtf8
should be sufficient for paths.

Michael



More information about the web-devel mailing list