I have a code written in php, where i am trying to fetch the file data with a apostrophe, when i am trying to do this it returns no result. Tried rawurlencode as well, but didnt work. Kindly help.
Code:
$file_path = "/posts/00 - jeff fader - together - (gents & dandy's - gents190).txt";
$file_content = wp_remote_retrieve_body( wp_remote_get( 'https://content.dropboxapi.com/2/files/download', array(
'headers' => array(
'Authorization' => 'Bearer ' . $api_key,
'Dropbox-API-Arg' => json_encode( array( 'path' => ($file_path) ) ),
),
)));