Both the database server and the client library recognize their language and character set environment using a locale definition.
See SQL Anywhere Server – Database Administration > Configuring your database > International languages and character sets > Understanding locales.