- Архив списков рассылки pgsql-sql

Поиск
Список
Период
Сортировка
От avpro avpro
Тема
Дата
Msg-id CAAQdDnkbyh9d3tmyOCEwVWsxpTUQGXxFnXLpjjxZxFcT4=QKqQ@mail.gmail.com
обсуждение исходный текст
Ответы Re:  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-sql

Hello all,

In postgresql 9.3 using pgAdmin, I created a table for my application developed in Qt Creator.
the table contains:
idstudent - pk
name
country
town
street


I would like to import a csv file containing all the info about these students. The file was saved/encoded in excel with UTF8 characters.

When I'm importing my file in psql, using the encoding UTF8, I receive the following error for each character not recognized:
"error: invalid byte sequence for encoding "UTF8": ... " followed by the character code

I tried to import the file using SQL_ASCII, I got similar errors.
I tried to import the file using MULE_INTERNAL and it worked, but the characters not recognized are not shown correct in pdAdmin and in my application when query is executed. For example after I imported the file with LATIN1 all unrecognized characters were replaced with "?".

Any suggestion what encoding shall I use to display the characters correctly?

note: the student's names and addresses are written using characters from North Europe, Eastern EU, Russia, South America, Asia, etc. everywhere.

Thank you for your input.

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

Предыдущее
От: ssylla
Дата:
Сообщение: Re: Trigger function - variable for schema name [SOLVED]
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: