UTF-8 support in query strings
You can enable UTF-8 support in query strings by editing the WebSEAL configuration file.
The default setting is no. Therefore, WebSEAL
default behavior is to assume that all query strings are local code
page.
[server]
utf8-qstring-support-enabled = {yes|no|enabled}
The three possible values are as follows:
- yes
WebSEAL recognizes only UTF-8 encoding in query strings and the data is used without modification. These UTF-8 characters are then validated and taken into account when it processes the data. Other encoding techniques are not accepted.
Use this setting when your WebSEAL server must process query strings that use UTF-8.
Servers that operate in a single-byte Latin locale, such as French, German, or Spanish, and process queries from an application that uses UTF-8, must use this setting. Servers that operate in a multi-byte locale and process only UTF-8 query strings can use this setting.
- no
WebSEAL does not recognize UTF-8 encoding in query strings. Used for local code page only. If the form data can be validated, it is converted to UTF-8 for internal use.
This setting is the default value, appropriate for most environments.
Servers that operate in a 7-bit ASCII English locale can use this setting.
- auto
WebSEAL attempts to distinguish between UTF-8 and other forms of language character encoding (DBCS and Unicode). WebSEAL correctly processes any correctly constructed UTF-8 encoding. If the encoding does not appear to be UTF-8, then the coding is processed as DBCS or Unicode.
Servers that operate in a multi-byte locale and process a mixture of UTF-8 and non-UTF-8 query strings can use this setting.
Servers that operate in a single-byte Latin locale, such as French, German, or Spanish, and process a mixture of UTF-8 and non-UTF-8 query strings can use this setting.