Re: Could not Store French Accent Marks Correctly in Postgres
В списке pgsql-general по дате отправления:
| От | Jonathan Bond-Caron |
|---|---|
| Тема | Re: Could not Store French Accent Marks Correctly in Postgres |
| Дата | |
| Msg-id | 000c01cb4143$64e47860$2ead6920$@com обсуждение исходный текст |
| Ответ на | Could not Store French Accent Marks Correctly in Postgres ("Wang, Mary Y" <mary.y.wang@boeing.com>) |
| Список | pgsql-general |
On Fri Aug 20 05:10 PM, Wang, Mary Y wrote: > > So my questions are: > (1) What is the best character encoding that would work for most of > those languages that have accent marks? Store data in PostgreSQL as UTF-8 > (2) I assume that I also > need to do some kind of conversion in the front end (PHP) as well. > > I'm running on Linux and Postgres 8.3.8. > If users are submitting the file names using an HTML form, use: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> ... If using some other method, the common encoding in Europe,north america is CP1252, in php you can convert to UTF8 using: mb_convert_encoding($str, 'UTF-8', 'Windows-1252'); http://www.php.net/manual/en/function.mb-convert-encoding.php
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера