Re: Automatic locale detection?

From: Lexington Luthor <Lexington(dot)Luthor(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Automatic locale detection?
Date: 2006-10-09 11:40:19
Message-ID: egdcf6$gjl$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-10-09 13:35:31 Re: PL/SQL: function call like $1($2)
Previous Message Martijn van Oosterhout 2006-10-09 11:11:44 Re: Automatic locale detection?