Unix - TS 6.7.1
I have a file(pdf) in the content store whose name contains an apostrophe('). When I am calculating the path of this file in one of my workflow files(.wft), I am getting the path as:
//host/default/main/branch/WORKAREA/Global/docs/downloads/Michael's_Wellness_Guide.pdf
whereas this should be:
//host/default/main/branch/WORKAREA/Global/docs/downloads/Michael's_Wellness_Guide.pdf
Due to this encoding of the apostrophe as ' the workflow is not able to find the file in the content store.
I have tried using
$filePath = Encode::encode("UTF-8", $filePath); but it doesn't help.
Also, my wft starts with [html]
Please suggest how do I get the correct file name in my workflow file.