From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Matthew Peter <survivedsushi(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Automatic locale detection? |
Date: | 2006-10-09 11:11:44 |
Message-ID: | 20061009111144.GB6119@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Lexington Luthor | 2006-10-09 11:40:19 | Re: Automatic locale detection? |
Previous Message | Andreas Seltenreich | 2006-10-09 11:07:04 | Re: Intentionally produce Errors |