Re: Automatic locale detection?

Поиск
Список
Период
Сортировка
От Lexington Luthor
Тема Re: Automatic locale detection?
Дата
Msg-id egdcf6$gjl$1@sea.gmane.org
обсуждение исходный текст
Ответ на Automatic locale detection?  (Matthew Peter <survivedsushi@yahoo.com>)
Список pgsql-general
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?
>

Have a look at http://www.mozilla.org/projects/intl/chardet.html and
http://chardet.feedparser.org/ for some implementations of this idea.

These detectors are often inaccurate though (and sometimes fail
completely), see the warning at the bottom of
http://chardet.feedparser.org/docs/supported-encodings.html

Regards,
LL

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Automatic locale detection?
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PL/SQL: function call like $1($2)