From: | "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org> |
Cc: | <pgsql(at)markdilger(dot)com>, <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <alvherre(at)commandprompt(dot)com>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Bug in UTF8-Validation Code? |
Date: | 2007-04-06 06:56:53 |
Message-ID: | AFCCBB403D7E7A4581E48F20AF3E5DB2020DE687@EXADV1.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Martijn van Oosterhout wrote:
> So your implemntation is simply:
> 1. Take number and make UTF-8 string
> 2. Convert it to database encoding.
Aah, now I can spot where the misunderstanding is.
That's not what I mean.
I mean that chr() should simply 'typecast' to "char".
So when the database encoding is UTF8, I want
chr(14844588) to return a Euro sign, and when the encoding
is LATIN9, then chr(14844588) should either yield the 'not'
sign (UNICODE 0xAC) or an error message, depending on whether
we want chr() to operate mod 256 like Oracle has it for
single byte character sets or not, while chr(164) should
return the Euro sign for LATIN9 database encoding.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Kreen | 2007-04-06 06:58:43 | Re: What X86/X64 OS's do we need coverage for? |
Previous Message | Greg Smith | 2007-04-06 06:53:17 | Re: Load distributed checkpoint V3 |