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