Re: Automatic locale detection?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Automatic locale detection?
Дата
Msg-id 20061009111144.GB6119@svana.org
обсуждение исходный текст
Ответ на Automatic locale detection?  (Matthew Peter <survivedsushi@yahoo.com>)
Список pgsql-general
On Sun, Oct 08, 2006 at 12:04:01PM -0700, Matthew Peter wrote:
> Is it possible to automatically detect the language encoding of
> incoming data? For instance if Japanese is used, is there a way to
> know it is Japanese from a bit in the charset, a dictionary-based
> evaluation or otherwise?

While technically possible, do you really want to run the risk of
getting it wrong?

Secondly, if you don't know the encoding of your data, you've got a
security problem, since you can't safely escape the data.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Andreas Seltenreich
Дата:
Сообщение: Re: Intentionally produce Errors
Следующее
От: Lexington Luthor
Дата:
Сообщение: Re: Automatic locale detection?