fluent/fluentd — pull request #146 by kentaro (2013-07-02 04:25:04+00:00)
Title: Add `encoding` option to `fluentd` command

I have an issue td-agent fails to parse the config file that includes multi-bytes characters. Which doesn't occurs when td-agent is started with `/etc/init.d/td-agent`, but does when started with `service` command.

It seems to be due to the difference of environment variables between `/etc/init.d/td-agent` and `service` command. The latter doesn't inherit environment variables from the terminal from which the command is executed.

You can see the details in [this blog post](http://heartbeats.jp/hbblog/2013/06/service-start-stop.html).

I'll propose we set default encoding of the config file and provide an option to change the encoding via `fluentd` command. The default value (UTF-8) is can be considered safe in almost all of the cases, I guess.