Re: Problem with character encodings.

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: Problem with character encodings.
Дата
Msg-id 9054.125.24.219.40.1188488365.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответ на Problem with character encodings.  ("Korumilli, Bala S (GE Healthcare)" <Bala.Korumilli@ge.com>)
Список pgsql-interfaces
On Thu, August 30, 2007 16:29, Korumilli, Bala S (GE Healthcare) wrote:

> I also tried inserting the character using its CODE. Characters 176, 186
> for  code page 1252. And character 248 for code page 437 .
> And I also tried all the characters from 128 to 255. For all these
> characters, Postgres is giving the same error.

So you also tried sending raw byte values for the UTF-8 character?  For
codepoint 176, I think that would be 0xc2 (194) followed by 0xb0 (176, by
pure coincidence).

If that failed as well then it sounds as if the database was not set up as
a Unicode one after all.  That's where it get system-specific and I
probably can't help you with it, but it sounds as if your database may
have been set up for ASCII.


> Can you please eloborate on this I could not understand this sentence.
> "The database doesn't expose its encoding IIRC, only its character set.
> So it's possible that that should be Unicode, not UTF-8."

It's only a small point, but IIRC the "encoding" given for a postgres
database set up to support Unicode is normally "Unicode," not "UTF-8."


Jeroen




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

Предыдущее
От: "Jeroen T. Vermeulen"
Дата:
Сообщение: Re: Problem with character encodings.
Следующее
От: Ivo Rossacher
Дата:
Сообщение: Re: Problem with character encodings.