[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: UTF-8 [was Re: LuaSocket http ftp smpt...]
- From: Klaus Ripke <paul-lua@...>
- Date: Wed, 9 Feb 2005 11:24:47 +0100
On Wednesday 09 February 2005 07:11, Diego Nehab wrote:
> provide an iterator that returns (charset, decoded text).
which would directly reflect the technical structure
and thus be best to pass around such data in the most accurate way
even if completely ignorant about the actual definition of any charset
> if charset ~= "iso-8859-1" then ignore(value) -- :)
oops - no alpha channel :(
> Is that good enough?
>From another point of view,
headers logically have flat values in an abstract universal charset
(with unicode being good enough for all practical purposes).
Using different actual character encodings is an implementation
detail not that much different from quoted printable -
it just requires a more complicated decoder.
Personally I'd like to pass a straighten-this-out callback
and then retrieve plain headers; however, this is easy to
wrap around the iterator approach.