Re: [GENERAL] Problem with langage encoding

2008-12-01 Thread Craig Ringer
Stephane Bortzmeyer wrote: > On Thu, Nov 27, 2008 at 02:34:17AM +0900, > Craig Ringer <[EMAIL PROTECTED]> wrote > a message of 188 lines which said: > >>> ERROR: character 0xc3bd of encoding "UTF8" has no equivalent in "WIN1251" >> Which it does not; that character is "???" (HANGUL SYLLABLE SS

Re: [GENERAL] Problem with langage encoding

2008-11-28 Thread Stephane Bortzmeyer
On Thu, Nov 27, 2008 at 02:34:17AM +0900, Craig Ringer <[EMAIL PROTECTED]> wrote a message of 188 lines which said: > > ERROR: character 0xc3bd of encoding "UTF8" has no equivalent in "WIN1251" > > Which it does not; that character is "???" (HANGUL SYLLABLE SSYEG) No, I don't think so. I th

Re: [GENERAL] Problem with langage encoding

2008-11-26 Thread Craig Ringer
Ronald Vyhmeister wrote: > >> The problem is that the database is UTF8, and it won't let me use the >> convert_to function because it says that the characters don't exist... > What >> I need to do is to pull the UTF8 from the database, tell postgres that > it's >> 8859-1, and then convert it to WI

Re: [GENERAL] Problem with langage encoding

2008-11-26 Thread Tom Lane
"Ronald Vyhmeister" <[EMAIL PROTECTED]> writes: > The DB is storing it UTF8, but it is really 8859-1... I need to force PG to > think that it's 8859-1 in spite of what it thinks it may be... Dump the database, change the "set client_encoding" command in the resulting file, reload.

Re: [GENERAL] Problem with langage encoding

2008-11-26 Thread Ronald Vyhmeister
> The problem is that the database is UTF8, and it won't let me use the > convert_to function because it says that the characters don't exist... What > I need to do is to pull the UTF8 from the database, tell postgres that it's > 8859-1, and then convert it to WIN1251... How? >If the DB is in

Re: [GENERAL] Problem with langage encoding

2008-11-26 Thread Raymond O'Donnell
On 26/11/2008 14:40, Ronald Vyhmeister wrote: > The problem is that the database is UTF8, and it won't let me use the > convert_to function because it says that the characters don't exist... What > I need to do is to pull the UTF8 from the database, tell postgres that it's > 8859-1, and then conve

[GENERAL] Problem with langage encoding

2008-11-26 Thread Ronald Vyhmeister
I've inherited a database system (including source)... It's Russian text (which I don't speak, but I need to work on it). On my screen it shows correctly, but in the database it shows a mess... from trying with a web browser. It appears that the data in the database is encoded with ISO-8859-1