4 ms·
Most logs are actually bytestrings. If they include user-controlled strings, they will likely have to be parsed as binary blobs to accommodate that.
by viraptor 10y ago
Most logs are actually bytestrings. If they include user-controlled strings, they will likely have to be parsed as binary blobs to accommodate that.
- 1ris 10y agoMany logs are localised - and contain unicode.
- viraptor 10y agoThere's a difference though. Does the log format itself in some unicode encoding, or does it just embed some utf-X encoded strings? If you just embed some user input and assume it will decode properly, you're likely to run into issues at some point when someone provides explicitly-broken encoding.