An Azure service that provides protection for web apps.
Welcome to Microsoft Q&A Platform.
As discussed, the issue appears to be related to the request encoding format. Azure Application Gateway WAF performs URL decoding using standard RFC 3986 percent-encoding and supports ASCII and UTF-8 encoded values during request inspection.
The affected requests contain Thai characters encoded using Windows-874 (for example: %CA, %BA, %C3, %D4). These byte sequences are valid in Windows-874 but are not UTF-8 encoded values.
Since:
- Requests encoded in Windows-874 result in HTTP 500 when WAF is enabled.
- The same requests encoded in UTF-8 succeed successfully.
- No WAF block actions are observed.
This indicates the behavior is related to how the Windows-874 encoded query string is processed during WAF URL decoding/normalization before the request is forwarded to the backend.
As a long-term recommendation, we suggest updating the application to use UTF-8 encoding for query string parameters, as UTF-8 encoded requests are processed successfully through Application Gateway WAF.
Please
and “up-vote” wherever the information provided helps you, **this can be beneficial to other community members.