0

I am trying to upload some UTF-8 strings into Vertica database using it's COPY command triggered by Vertica client (VSQL tool). Unfortunatelly, from Vertica docs:

The drivers do not transform data loaded by executing a COPY or COPY LOCAL statement.

Data I am importing looks like this

\u00DCser entered \\t and \\n and \\r and \u0161 \u0111 \u017E \u010D \u0107 \u0160 \u0110 \u017D \u010C \u0106 \u00FC \u00F6 \u00E4 \u00DC \u00D6 \u00C4

This is just a set of some characters and represents one string being imported. Does anyone has any idea how to do this? Of course, there is an option of some sed-awk magic before triggering COPY command, if needed.

4

1 回答 1

0

看起来您的数据不是 utf-8 格式,而是某种 unicode 点可打印格式。检查您的提取过程并确保您的数据采用 utf-8 格式并且可以正常加载(字符数据在 vertica 中必须采用 utf-8 格式)。

于 2013-03-24T21:30:27.340 回答