| От | Tom Lane |
|---|---|
| Тема | Re: SQL_ASCII and UNICODE server_encoding |
| Дата | |
| Msg-id | 13567.1092668673@sss.pgh.pa.us обсуждение |
| Ответ на | SQL_ASCII and UNICODE server_encoding (Achilleus Mantzios <achill@matrix.gatewaynet.com>) |
| Ответы |
Re: SQL_ASCII and UNICODE server_encoding
|
| Список | pgsql-sql |
Achilleus Mantzios <achill@matrix.gatewaynet.com> writes:
> So if SQL_ASCII should be fine for UTF-8 storage.
> (here i must have missed something, tho..), whats
> the purpose of server_encoding=UNICODE?
If you use SQL_ASCII, the server will *store* Unicode just fine, but
it won't *know* it is Unicode. So if you just want raw data storage
it doesn't matter. If you would like to sort the data, upper-case
or lower-case it, or have automatic conversions to different client
encodings, you had better tell the server the truth about what it
is storing.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера