httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Kellermann <...@duempel.org>
Subject Re: unicode
Date Thu, 17 Mar 2005 17:15:03 GMT
On 2005/03/17 17:09, Joe Schaefer <joe+gmane@sunstarsys.com> wrote:
> 1) in apreq.h, add

+1

> 2) in apreq_param.h: replace the "utf8" stuff with

+1

> 3) upgrade apreq_param_decode() and apreq_param_decodev()
> to report the charset detected (probably via the return value
> so people can't just ignore it).  The divination logic would 
> go like this:

Your algorithm is probably the best we can do.. if that works out for
all important clients, +1 from me.

> 4) expose a utility function which converts cp-1252 strings
> to utf8.

We should also have a flag "always UTF-8, please", which makes
libapreq2 transparently convert everything to UTF-8.

> 5) Replace the perl-glue's $param->is_utf8() method with charset().
> When we have to expose an cp-1252 encoded param to a perl user, 
> we use the utility function from (4) and translate the data to utf8 
> (in the SvPV; we don't modify the apreq_param_t at all).

0, because I havn't worked with the perl glue yet. But it sounds ok.

Max


Mime
View raw message