• Boothleads
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 3
    Replies
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!!!
Hi,

I am developping a Salesforce integration in a web aplication. I can login and request data with the received token. I try to catch the 401 response when the token expires, however I get a CORS error when I don't include the Authorization header or pass in an expired token. Could anyone help me how to solve this? I need to implement a token refresh strategy by listening to a 401 response.
Hi

Issue is that certain symbols/letters appear broken on the CSV file that has been exported, as by default the encoding is ISO-8859-1.
However forcing it to export in UTF-8 seems to have zero effect - meaning the exported file will still have broken symbols, even though the symbols/letters are displayed correctly in SF itself.

The export function VS page code piece is like this :
 
<apex:page controller="TestPage" cache="true" contentType="text/csv#filename.csv; charset=UTF-8">

Tried the solutions offered in ..

https://developer.salesforce.com/forums/?id=906F0000000962nIAA
http://salesforce.stackexchange.com/questions/16157/attachment-utf-8-character-set
http://salesforce.stackexchange.com/questions/18546/unable-to-display-utf-8-character-in-a-csv-file-generated-from-apex-code
 

Hi,

 

I am getting this error when I tried to update user from salesforce backend.

Error: Duplicate Username.
Another user has already selected this username.
Please select another.


but there is no user in this org with same username. I have also checked all my sandboxes but I didn't find user with same username.

 

Can anybody help me to get through this.

 

Thanks,

Pratty

  • February 11, 2013
  • Like
  • 0
Hi,

I am developping a Salesforce integration in a web aplication. I can login and request data with the received token. I try to catch the 401 response when the token expires, however I get a CORS error when I don't include the Authorization header or pass in an expired token. Could anyone help me how to solve this? I need to implement a token refresh strategy by listening to a 401 response.