Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: Fail to import because a field includes delimiter

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Fail to import because a field includes delimiter
Simon 06.07.2006 11:58:01
Dear All,

I export a table with delimiter "|" to a text file from Informix database.
Some fileds include Chinese words. And some Chinese words include "|". It is
no problem to import it back to Informix.

When I import it with delimiter "|" into Access 2002, it fails because some
fileds include the delimiter "|". If I remove the delimiter "|" from the text
file, it casues the Chinese words are not correct. Could you provide me a
solution?

Thanks,
Simon

Re: Fail to import because a field includes delimiter
John Nurick <j.mapSoN.nurick[ at ]dial.pipex.com> 06.07.2006 20:24:56
Hi Simon,

The obvious answer is to use a different delimiter, or to enclose the
data values in quotes (as in the classic CSV file, where fields that
contain commas must be enclosed in quotes), or to export it as a fixed
width file.

The other possibility is that this is a character set/code page/encoding
issue. Can you export from Informix to a Unicode text file? That should
avoid the problem, because there's no overlap in Unicode between the
"ASCII" characters (including |) and Chinese characters. (On the other
hand, if your Chinese text really contains the "ASCII" | this won't
solve the problem.



On Thu, 6 Jul 2006 04:58:01 -0700, Simon
<Simon[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>Dear All,
>
>I export a table with delimiter "|" to a text file from Informix database.
>Some fileds include Chinese words. And some Chinese words include "|". It is
>no problem to import it back to Informix.
>
>When I import it with delimiter "|" into Access 2002, it fails because some
>fileds include the delimiter "|". If I remove the delimiter "|" from the text
>file, it casues the Chinese words are not correct. Could you provide me a
>solution?
>
>Thanks,
>Simon

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net