Who's implementing the Encodings API?

9 views
Skip to first unread message

Aristid Breitkreuz

unread,
Jul 30, 2009, 8:54:13 AM7/30/09
to serv...@googlegroups.com
Who's implementing https://wiki.mozilla.org/ServerJS/Encodings ?

And who is consciously not implementing it?


Flusspferd implements it.

Daniel Friesen

unread,
Jul 30, 2009, 4:16:29 PM7/30/09
to serv...@googlegroups.com
I haven't got to that module much less most of the ServerJS stuff.
Not as related, but I have done a minor bit of work on
http://draft.monkeyscript.org/wiki/Encoding
I don't support # -*- coding: ISO-8859-1 -*- just yet, but I do support
BOMs (ie: UTF-16 files already work in MonkeyScript Lite in addition to
UTF-8)

I can understand enc.supports(encodingName); but if we have
bytestring.toByteString(fromEncoding, toEncoding);
bytestring.decodeString(fromEncoding); string.toByteString(toEncoding);
what purpose do the other methods really serve?

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

Aristid Breitkreuz

unread,
Jul 31, 2009, 1:55:51 PM7/31/09
to serv...@googlegroups.com
Daniel Friesen schrieb:

> I can understand enc.supports(encodingName); but if we have
> bytestring.toByteString(fromEncoding, toEncoding);
> bytestring.decodeString(fromEncoding); string.toByteString(toEncoding);
> what purpose do the other methods really serve?
>

I would suggest implementing the ByteString methods in terms of the
encodings module.

You do understand the purpose of class Transcoder, though?

Daniel Friesen

unread,
Jul 31, 2009, 5:07:47 PM7/31/09
to serv...@googlegroups.com
Incremental transcoding?

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

Aristid Breitkreuz wrote:
Reply all
Reply to author
Forward
0 new messages