Re: BUG #5944: COPY FROM doesn't work with international characters
| От | John R Pierce |
|---|---|
| Тема | Re: BUG #5944: COPY FROM doesn't work with international characters |
| Дата | |
| Msg-id | 4D8A86EF.6020502@hogranch.com обсуждение исходный текст |
| Ответ на | BUG #5944: COPY FROM doesn't work with international characters ("Nathan Davalos" <n.davalos@sharedmarketing.com>) |
| Ответы |
Re: BUG #5944: COPY FROM doesn't work with international characters
|
| Список | pgsql-bugs |
On 03/23/11 4:32 PM, Nathan Davalos wrote: > ... > SET CLIENT_ENCODING TO 'WIN1251'; > copy tmpintermediate from 'thefile.txt'; > > > Sample contents of thefile: > 230002 Alto Desempe=C3=B1o, S.A. De C.V. > > When using WIN1251 or WIN1252 I get nothing in the second field, it just > ignores the data. Same thing for LATIN-1. > > When using UTF8 for client encoding I get this message: > ERROR: invalid byte sequence for encoding "UTF8": 0xf16f2c20 > CONTEXT: COPY tmpintermediate , line 1 what is the byte (binary) encoding of the file? in hex, =C3=B1 in win1251 =3D=3D (no such character. win1251 is cyrillic) =C3=B1 in win1252 =3D=3D F1 =C3=B1 in UTF-8 =3D=3D C3 B1 =20=20
В списке pgsql-bugs по дате отправления: