This commit is contained in:
2021-09-10 20:38:13 +00:00
parent b32c53da93
commit 79cf0d8eff

View File

@@ -5,9 +5,12 @@
AyaNova supports Unicode text and localization. The Locale setting of the host server operating system affects both directly and indirectly how sorting, searching and filtering (case insensitive) work in AyaNova.
When AyaNova creates it's database for the first time, PostgreSQL server will set various Locale settings by taking the operating system defaults. AyaNova only specifies the UTF8 text encoding (for Unicode support) property and leaves the rest up to Postgres which in turn relies on the operating system locale settings.
## Postgres locale documentation
For more information see the Postgres [Localization documentation](https://www.postgresql.org/docs/current/locale.html)
The current locale settings can be viewed in either the AyaNova server log by enabling the Debug version of the log or in the AyaNova user interface under Server Operations -> Server Information page in the "DB server parameters" section, specifically the `lc_collate` and `lc_ctype` runtime parameters.
## AyaNova locale setting information
The current locale settings can be viewed in the AyaNova user interface under Server Operations -> Server Information page in the "DB server parameters" section, specifically the `lc_collate` and `lc_ctype` runtime parameters. This information is also logged to the AyaNova server log if the server's [AYANOVA_LOG_LEVEL](common-log.md#log-level) is set to DEBUG mode or lower.
## Sorting
@@ -16,7 +19,7 @@ By default when AyaNova creates it's database it will take this parameter from t
## Searching
The AyaNova Search feature (search form) *always* searches case **in**-sensitive by default. There is no setting to change this to case sensitive as that is not supported for searching. In practice this means that all text is treated as lower case for searching. Text entered is converted to lower case and searched for by relying on the server's host operating system locale setting in conjunction with the Postgre server's AyaNova database locale setting (see Overview above for how to view these settings in AyaNova).
The AyaNova Search feature (search form) *always* searches case **in**-sensitive by default. There is no setting to change this to case sensitive as that is not supported for searching. In practice this means that all text is treated as lower case for searching. Text entered is converted to lower case and searched for by relying on the server's host operating system locale setting in conjunction with the Postgre server's AyaNova database locale setting `lc_ctype` (see Overview above for how to view these settings in AyaNova).
## Filtering