Skip to content

Commit 9c02207

Browse files
JCandrejoel-viv
andauthored
Enable the json_encode JSON_INVALID_UTF8_SUBSTITUTE flag when writing postman collections (#997)
Co-authored-by: joelcummings <joel.cummings@vivedia.net>
1 parent 99c2121 commit 9c02207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writing/Writer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function generatePostmanCollection(array $groupedEndpoints): string
129129
data_set($collection, $key, $value);
130130
}
131131
}
132-
return json_encode($collection, JSON_PRETTY_PRINT);
132+
return json_encode($collection, JSON_PRETTY_PRINT|JSON_INVALID_UTF8_SUBSTITUTE);
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)