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
ying liuying liu 

set excel name as utf-8 in VF

Hi Guys,

I have created a VF for excel export. I want the excel name to be chinese name but it doesn't work.

Below is my page prop:
contentType="application/vnd.ms-excel#测试.xls;charset=utf-8"
But I got the file name is --.xls

Anybody knows how to set file name charset as utf-8?

Thanks very much!
Ying
Andy BoettcherAndy Boettcher
Try reading through this post and see if it helps!

https://developer.salesforce.com/forums?id=906F0000000962nIAA
ying liuying liu
Hi Andy,

Thanks for your replay.

I have read it and try it in my VF but it doesn't work.
The file name is still --.xls and I want it to be  测试.xls.
Any other way?