You need to sign in to do that
Don't have an account?
andream.ax1123
Encoding for apex generated csv file
Hi,
I'm exporting data as csv using a Document object. I found a problem when I try to import the csv file into Microsoft Excel (Office 2007). The csv file is exported in utf-8 and excel expects an ansi file.
I've found a workaround importing the file instead of just opening it. But I want to know if there is any other easier way for the end-users of opening the file. Or another way of generating the file with ansi encoding.
thanks in advance,
What contenttype your are setting for the generation?
I'm using : text/plain
try setting content type "application/vnd.ms-excel"
I tried with that encoding option too, but it didn't work. Anyway thanks for the quick reply .