That works, but not well enough. 1. It will drop the erroneous chars, leaving no evidence of issues (perl can hex escape) 2. It adds a dependency to iconv (this can be native to perl)
That works, but not will enough. 1. It will drop the erroneous chars, leaving no evidence of issues (perl can hex escape) 2. It adds a dependency to iconv (this can be native to perl)
It seems that perl does not inherit an encoding: no encoding; Unsets the script encoding. The layers of STDIN , STDOUT are reset to ":raw " (the default unprocessed raw stream of bytes). A confirurgation option for default input encoding might be needed, but each service script for sure will need to handle their own input encoding and output utf8.
On a side note: per RFC 3164 and RFC 5424 syslog should be in UTF-8. per the systemd journalctl man page, output is 'by default "utf-8", if the invoking terminal is determined to be UTF-8 compatible'. ilegal characters should be noted, escaped, truncated or dropped.
supplort XML formatiing
Tracking Merge remote-tracking branch 'upstream/master' into issue-56
updated test script for better error checking
log files structure