I would like to export query result to csv file in utf-8. Now i export to csv in this way:
DECLARE @cmd varchar(1000)
SET @cmd = 'bcp "select * from table" queryout "d:\textfile.csv" -w -T -t; -Slocalhost'
EXEC xp_cmdshell @cmd
How to make file be in UTF-8?