You need to sign in to do that
Don't have an account?

hyphen replaced by –
I have an apex trigger that creates a text file on input of a PDF file. It works fine except for one bit.
textbody = 'CODEPAGE:819'+' \r '+ 'COMMENT: Begin Prolog'+' \r '+ 'COMMENT: Customer Identifier – GFF'+' \r '+
Creates a textbody of
CODEPAGE:819
COMMENT: Begin Prolog
COMMENT: Customer Identifier â€" GFF
As you can see. '-' is producing a value of –. Search as I might on the forums, I can't find any reference to how to declare a Hyphen in a Textbody Call.
Got it.
changing
'COMMENT: Customer Identifier - GFF'+' \r '+
to
'COMMENT: Customer Identifier '+'-'+' GFF'+' \r '+
Addressed the issue (though I'm not savvy enough to say why. The spaces apparently get read by the Textbody method logic in a funny way.