mirror of
https://github.com/netdata/netdata.git
synced 2025-05-22 16:37:46 +00:00

#### Summary Fixes #3117 Additionally it adds support for UTF-8 in URL parser (as it should). Label sizes now are updated by browser with JavaScript (although guess is still calculated by verdana11_widths with minor improvements) #### Component Name API/Badges, LibNetData/URL #### Additional Information It was found that not only verdana11_widths need to be updated but the url parser replaces international characters with spaces (one space per each byte of multibyte character). Therefore I update both to support international chars.
9 lines
239 B
C
9 lines
239 B
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_STRING_UTF8_H
|
|
#define NETDATA_STRING_UTF8_H 1
|
|
|
|
#define IS_UTF8_BYTE(x) (x & 0x80)
|
|
#define IS_UTF8_STARTBYTE(x) (IS_UTF8_BYTE(x)&&(x & 0x40))
|
|
|
|
#endif /* NETDATA_STRING_UTF8_H */
|