Re: Wrong charset?

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Wrong charset?
Дата
Msg-id DE6EE9DC-BD4F-4EDC-94B8-1EA9FFF5A116@myrealbox.com
обсуждение исходный текст
Ответ на Wrong charset?  (jfo123@hotmail.com)
Ответы Re: Wrong charset?  ("Jonas Forsman" <jfo123@hotmail.com>)
Список pgsql-general
On Oct 18, 2005, at 21:52 , jfo123@hotmail.com wrote:

> Hi, all of a sudden (?) it seems like the stuff I am putting into a
> table is getting the wrong character coding. The definition of the db
> is like this:
> CREATE DATABASE my_sampledb
>   WITH OWNER = postgres
>        ENCODING = 'LATIN1'
>        TABLESPACE = pg_default;
>
> Still I get crap out from it when I insert data which is encoded with
> the swedish characterset for instance (å, ä, ö). Can someone hint me
> towards a good thread that I have not found or simply what else to
> take
> a look at.


I believe the two things you should look at are whether the
characters you're interested in are defined in the character set
you're using and whether the client and server encodings match, e.g.
if you're using psql, that the psql encoding is also Latin-1 or can
is something that can be converted losslessly to Latin-1.

You don't mention where you are seeing the wrong characters: if it's
a web page, you'll also want to make sure you've defined the charset
(in a meta tag) for the web page and that it also matches your
encoding. Of course, if it's *not* a webpage you're looking at, this
last bit won't help ;)


Michael Glaesemann
grzm myrealbox com




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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Number of rows of a table
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL on Dual Processors, Dual-Core AMD Chips