lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

> Perhaps in LuaMime?

Does this exist or is it your suggestion for a split between LuaSocket
and the MIME support?

> > Header encoding is not there (for no good reason), but it's really easy
> > to do. Maybe I should add a tiny function to do it.
>
> Yes! That would be great. What character set does the encoding uses?
> UTF-8? Big5?

What I would do is provide a function that takes a header, a charset
specification, a "q" or "b" mode, and return the encoded string. The
most common charset is ISO-8859-1, which is enough for us Latin people.
The encoding doesn't care about the charset, though.

[]s,
Diego.