Activity Forums Salesforce® Discussions How to get Encoded Value when querying in Salesforce Batch Class?

  • PRANAV

    Member
    April 4, 2018 at 7:15 am

    Hi Shubham,

    The vertical bar ( | ) is a computer character and glyph with various uses in mathematics, computing, and typography.

    The vertical bar is encoded in Unicode at U+007C | Vertical line (124decimal · HTML |).

     

    So to decode the HTML character in Apex class

    You have to use unescapeHtml4()

    For Example:
    string str ='Ришат|';
    string decode = str.unescapeHtml4();
    system.debug('@@@ '+decode);

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos