agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@gmail.com>
To: avpro avpro <avprowebeden@gmail.com>
To: pgsql-novice@postgresql.org <pgsql-novice@postgresql.org>
To: pgsql-sql@postgresql.org
Subject: Re:
Date: Sat, 15 Feb 2014 07:30:09 -0800
Message-ID: <52FF8801.30005@gmail.com> (raw)
In-Reply-To: <CAAQdDnkbyh9d3tmyOCEwVWsxpTUQGXxFnXLpjjxZxFcT4=QKqQ@mail.gmail.com>
References: <CAAQdDnkbyh9d3tmyOCEwVWsxpTUQGXxFnXLpjjxZxFcT4=QKqQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 02/15/2014 03:18 AM, avpro avpro wrote:
>
> 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.
You specified UTF8 when creating the CSV file?
>
> 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?
Might want to take a look at this tool:
https://pypi.python.org/pypi/chardet
>
> 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.
--
Adrian Klaver
adrian.klaver@gmail.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (3+ messages)
Message-ID: <52FF8801.30005@gmail.com>
Permalink: ../52FF8801.30005@gmail.com/
Also on: postgresql.org/message-id/52FF8801.30005@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: adrian.klaver@gmail.com, avprowebeden@gmail.com, pgsql-novice@postgresql.org
Subject: Re:
In-Reply-To: <52FF8801.30005@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox