Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a question about strange characters ( ) in syslog file #16

Open
pemca opened this issue Aug 11, 2018 · 1 comment
Open

Just a question about strange characters ( ) in syslog file #16

pemca opened this issue Aug 11, 2018 · 1 comment

Comments

@pemca
Copy link

pemca commented Aug 11, 2018

Hi, and thanks for at great library.

I use it with rsyslog server on debian and wonder why i get strange characters ( ) in syslog file.

Aug 11 18:00:47 esp32-1 RC-Switch Temperature Sensor 1 25.937500
Aug 11 18:00:57 esp32-1 RC-Switch Temperature Sensor 1 26.000000

It is OK if i change this in syslog.cpp
if (this->_protocol == SYSLOG_PROTO_IETF) {
//this->_client->print(F(" - - - \xEF\xBB\xBF"));
this->_client->print(F(" - - - "));
} else {
this->_client->print(F("[0]: "));
}

I know this is not OK, but could you explain ?

thanks,
[email protected]

@arcao
Copy link
Owner

arcao commented Sep 10, 2018

Hello pemca,

Sorry for late answer, it's BOM (Unicode Byte Order Mark) to support UTF-8 characters in a message as is described here: https://tools.ietf.org/html/rfc5424#section-6

Anyway there is open issue rsyslog/rsyslog#284, but it should be fixed since rsyslog v1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants