postgresql - Encoding in SQL to CSV -


When I copy the query ... CSV, I make the CSV file but when the column in the name of Excel Open it, which should be with national characters, it should not be so. So my question is, if it is possible for SQL queries to change this encoding for SQL? or something else? Because I want to have the newly created CSV file as the final product for the user on the web. I hope someone decides what I want :)

Postgrescill transcoding column names when copying Does not support CSV as I think you are asking this?

For example, if I create a table:

  Steve @ Steve @ [local] = csvtest in #stdout with CSV header; You can transcode the data to something else:  
  Steve @ Steve @ [ID], value 1, Televise Polska, ZoeSela Deziezesz imiszey program  

Local] = # set client_encoding = 'iso8859-2'; ST Steve @ Steve @ [local] = Standout from CDAVT with CSV header; ID, value1, Telewizja Polska zawiesi a dzisiejsz emisj program

But if you define column names in a national character:

  Steve @ Steve @ [Local] = # customer-encoding reset; Reset Steve @ Steve @ [Local] = # Copy (Select as ID, Standout with CDS Headers from value "from Imisz" to csvtest); Id, emisję 1, Telewizja Polska zawiesiła dzisiejszą emisję program  

Then they are not transcoded:

  Steve @ Steve @ [local] = # set Client_encoding = 'Iso8859-2'; SET Steve @ Steve @ [Local] = # Copy (Select as ID, Standout with CDS Header from value "from Imisjse" to csvtest); ID, Emmy 1, Televizo Polska Javaziya Dziezesgesi Emisij Program  

Probably sending UTF-8 as a part of the COPY command, without being echoed to me, has been decoded .


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -