This page explains how to use the isutf8 function in APL.
isutf8
function to check whether a string is a valid UTF-8 encoded sequence. The function returns a boolean indicating whether the input conforms to UTF-8 encoding rules.
isutf8
is useful when working with data from external sources such as logs, telemetry events, or data pipelines, where encoding issues can cause downstream processing to fail or produce incorrect results. By filtering out or isolating invalid UTF-8 strings, you can ensure better data quality and avoid unexpected behavior during parsing or transformation.
Splunk SPL users
isutf8
as a simple and reliable alternative.ANSI SQL users
isutf8
as a consistent, built-in way to validate string encoding.Name | Type | Description |
---|---|---|
value | string | The input string to validate. |
bool
value:
true
if the input string is valid UTF-8.false
otherwise.isutf8
to detect and exclude malformed UTF-8 entries in HTTP request logs that could indicate issues with upstream data encoding.Query_time | id | method | uri | status |
---|---|---|---|---|
2025-07-09T13:32:05Z | user42 | GET | �/broken-path | 500 |
2025-07-09T14:10:17Z | user99 | POST | /submit-form%80 | 200 |
uri
or method
fields contain invalid UTF-8 characters, which may point to upstream client encoding issues or malformed requests.