postgresql - Uploading a CSV file, distorted characters -
i having problem when uploading csv file through following query,
copy adwords_initial("account", "week", "campaign", "keyword", "ad group", "keyword state", "match type", "max. cpc", "clicks", "impressions", "cost", "avg. position", "ad group state", "campaign state", "status", "qual. score (hist.)", "expected clickthrough rate (hist.)", "ad relevance (hist.)", "landing page experience (hist.)", "first page cpc", "first position cpc", "top of page cpc", "bounce rate","pages / session", "avg. session duration (seconds)", "% new sessions", "search exact match is", "search lost (rank)", "search impr. share", "conversions", "conv. rate") 'c:\users\iantu\desktop\performance marketing\report inputs\input.csv' delimiter ',' csv header encoding 'windows-1251'; characters in french not translate accordingly example
in keyword original file has +connectivité +iot in keyword postgresql file has +connectivitй +iot do settings have changed within application?
i should mention export using following query, however, data can seen corrupted within database.
copy (select * adwords_initial) 'c:\users\iantu\desktop\performance marketing\report outputs\in between workflow.csv' csv header;
use latin1 encoding:
copy adwords_initial("account", "week", "campaign", "keyword", "ad group", "keyword state", "match type", "max. cpc", "clicks", "impressions", "cost", "avg. position", "ad group state", "campaign state", "status", "qual. score (hist.)", "expected clickthrough rate (hist.)", "ad relevance (hist.)", "landing page experience (hist.)", "first page cpc", "first position cpc", "top of page cpc", "bounce rate","pages / session", "avg. session duration (seconds)", "% new sessions", "search exact match is", "search lost (rank)", "search impr. share", "conversions", "conv. rate") 'c:\users\iantu\desktop\performance marketing\report inputs\input.csv' delimiter ',' csv header encoding 'latin1';
Comments
Post a Comment