function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BoothleadsBoothleads 

CSV generated from batch class & visualforce pages are not able to be generated with UTF 8 format

My visualforce page downloads excel and csv files which works fine for English but the UTF 8 characters are breaking.For xls I have fixed it up with <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> inside <head> tag,but it is unfortunately not working for CSV.Can anyone help me out please?I know that if we use google sheets to view we can be able to see the proper UTF 8 characters ,but if not viewed with Google sheets what could be the possible solution?My code also has a batch class which is generating a csv from Apex code.So in apex how this can be fixed?I have tried with "ContentType  = 'text/csv; charset=UTF-8';"  in the apex controller,but it is not working.Any help will be highly appreciated!!!