+ Start a Discussion
Mohammed Zabi 1Mohammed Zabi 1 

download CSV File using Visualforce Page contentType="Charset=UTF-8;text/octet-stream#Account.csv

I would like to download CSV File using Visualforce Page for that in vf page we used  contentType="Charset=UTF-8;text/octet-stream#Account.csv;" but hear the text is in japanes language so now its showing junk value when i an oppning the csv file in excel.

please help me to download a csv file and open in right format
BalajiRanganathanBalajiRanganathan
try UTF-16 as your Charset. 
contentType="Charset=UTF-16,text/csv#Account.csv
Mohammed Zabi 1Mohammed Zabi 1
Thanks Balaji

   but still a aim getting junk values from visualforce page 
 
BalajiRanganathanBalajiRanganathan
try setting contentType="text/xml#account.xls"
https://developer.salesforce.com/forums?id=906F0000000996UIAQ