// Upload File
$api->uploadFile(
$remoteFileName,
$sourceFile
);
$oldValue = mb_convert_encoding("今月ご利用額合計", 'UTF-8', 'auto');
$newValue = mb_convert_encoding("Trissss", 'UTF-8', 'auto');
try {
$textReplace = new TextReplace([
"old_value" => $oldValue,
"new_value" => $newValue,
"regex" => false
]);
$textReplaceRequest = new TextReplaceListRequest([
"text_replaces" => [$textReplace]
]);
// Call the TextReplace API
// THIS IS WHERE THE ERROR OCCURS
$response = $api->postDocumentTextReplace(
$remoteFileName,
$textReplaceRequest,
null, // Storage
null // Folder
);
Error:
Incorrect input string passed for font HeiseiMin-W3-UniJIS-UCS2-H