summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-20 16:54:48 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-20 16:54:48 +0200
commitf06eb68bc6e623c64cca6bb50155ff67bcf545c6 (patch)
tree0368d9d8055f43475a3b9cdccf8d0b55443f9a77
parent554fc84431f06909fa1926cacadb303ba2b6c9e2 (diff)
downloadrsyslog-f06eb68bc6e623c64cca6bb50155ff67bcf545c6.tar.gz
rsyslog-f06eb68bc6e623c64cca6bb50155ff67bcf545c6.tar.bz2
rsyslog-f06eb68bc6e623c64cca6bb50155ff67bcf545c6.zip
doc: one more sample for mmutf8fix
-rw-r--r--doc/mmutf8fix.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/mmutf8fix.html b/doc/mmutf8fix.html
index 1a98f660..e8020685 100644
--- a/doc/mmutf8fix.html
+++ b/doc/mmutf8fix.html
@@ -57,7 +57,8 @@ control characters are NOT being replaced, because they are valid UTF-8.
<br>In <b>controlcharacters</b> mode, all bytes which do not represent a
printable US-ASCII character (codes 32 to 126) are replaced. Note that this
also mangles valid UTF-8 multi-byte sequences, as these are (deliberately) outside
-of that character range.
+of that character range. This mode is most useful if it is known that no
+characters outside of the US-ASCII alphabet need to be processed.
<li><b>replacementChar</b> - default " " (space), a single character<br>
This is the character that invalid sequences are replaced by. Currently, it
MUST be a <b>printable</b> US-ASCII character.
@@ -85,6 +86,14 @@ if $fromhost-ip == "10.0.0.1" then
# all other actions here...
</textarea>
+<p>This is mostly the same as the previous sample, but uses "controlcharacters"
+processing mode.
+<p><textarea rows="5" cols="60">module(load="mmutf8fix")
+if $fromhost-ip == "10.0.0.1" then
+ action(type="mmutf8fix" mode="controlcharacters")
+# all other actions here...
+</textarea>
+
<p>[<a href="rsyslog_conf.html">rsyslog.conf overview</a>] [<a href="manual.html">manual
index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p>
<p><font size="2">This documentation is part of the