Re: Log and special characters

Ben RUBSON <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
> On 01 Aug 2017, at 19:30, Ben RUBSON <[email protected]> wrote:
> 
> $r->log->error("log with special char ééèè");
> 
> [Tue Aug 01 19:25:28.914947 2017] [perl:error] [pid 56938] [client 127.0.0.1:59952] log with special char \xc3\xa9\xc3\xa9\xc3\xa8\xc3\xa8
> 
> Why all these \x symbols ?

Well, sounds like Apache escapes characters > 255 in server/util.c, ap_escape_errorlog_item().
Once converted to ASCII, é and è are greater than 255, so are escaped.
Here's the explanation :)

Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.