Primitivni prevod netisknutelnych znaku do Unicode.
This commit is contained in:
parent
4dbd2697e0
commit
b6cc695e95
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user