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
udayar_jayamudayar_jayam 

How to upload a CSV file which with Special Character using Apex into Salesforce

Hi All,

      Requirement is to upload a CSV file which carries multilingual character and Special characters into Salesforce using custom functionality [using VF and apex], but when I try to upload that file and converting blob to String getting error as 'Blob is Invalid UTF -8 String' .How to solve this issues.

vbsvbs

Have you tried converting the string to base64 using EncodingUtil classes? This should take care of encoding complex characters and allow it to be sent over the HTTP layer.