Primitivni prevod netisknutelnych znaku do Unicode.

This commit is contained in:
Pavel Brychta 2018-05-13 15:59:40 +02:00
parent 4dbd2697e0
commit b6cc695e95

View File

@ -109,7 +109,15 @@ static String _getText(const char *buffer)
break;
default:
if (*buffer < 128)
res.concat(*buffer);
else
{
char chr[3];
res.concat(F("\\u00"));
sprintf_P(chr, PSTR("%02X"), *buffer);
res.concat(chr);
}
break;
}
++buffer;