[rsyslog] 8Bit character escaping - was: RE: PostgreSQL: Problems with character encoding

Rainer Gerhards rgerhards at hq.adiscon.com
Wed Jan 27 15:27:51 CET 2010


David,

I have now added the functionality to escape 8-bit characters. Patch is here:

http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=85045270f69e4dcb25c409c9
661e96e3172d7f30

I hope it is useful.

I plan to release a new v5 devel soon, probably tomorrow or friday.

Rainer

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> Sent: Friday, January 22, 2010 11:07 AM
> To: rsyslog-users
> Subject: Re: [rsyslog] PostgreSQL: Problems with character encoding
> 
> On Fri, 22 Jan 2010, Rainer Gerhards wrote:
> 
> >> my thought is that just like we have a filter to change control
> >> characters
> >> to escape sequences, it would be good to have a filter to escape
> non-
> >> ascii
> >> characters. this will mangle other character sets, but they are
> unlikly
> >> to
> >> go through cleanly anyway.
> >
> > Just to be on the right path, you suggest escaping charactes with hex
> values
> >> 7f?
> 
> correct. they can cause as much grief (or more) than control
> characters.
> 
> since control characters get escaped by default, rsyslog will already
> mangle UTF8 text sent to it if the final byte is in that range.
> 
> David Lang
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com



More information about the rsyslog mailing list