| От | Tom Lane |
|---|---|
| Тема | Re: Chinese database name in URL, can I ? |
| Дата | |
| Msg-id | 5901.1193182413@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Chinese database name in URL, can I ? (Oliver Jowett <oliver@opencloud.com>) |
| Список | pgsql-jdbc |
Oliver Jowett <oliver@opencloud.com> writes:
> Tom Lane wrote:
>> At a guess, the name of the database will have to be in UTF8. I doubt
>> that JDBC will think it should do any character set conversion on it.
> Has something changed here so that non-7-bit data in the startup packet
> will work?
The server just thinks those are 8-bit strings. I guess my
recommendation is that you should go ahead and send UTF8, and if the
user created the non-ASCII name that way, it'll work. (In practice I
think that means he'd have to issue the CREATE DATABASE or CREATE USER
command while logged into a database that uses UTF8 encoding.)
This whole business of per-database encodings is a mess, of course.
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера