We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5417286 + 5833e08 commit be7447aCopy full SHA for be7447a
1 file changed
src/Deployer.php
@@ -82,6 +82,9 @@ public function upload_files( string $processed_site_path ) : void {
82
ltrim( $cache_key, '/' );
83
84
$mime_type = MimeTypes::GuessMimeType( $filename );
85
+ if ( "text/" === substr( $mime_type, 0, 5 ) ) {
86
+ $mime_type = $mime_type . '; charset=UTF-8';
87
+ }
88
89
$put_data['Key'] = $s3_key;
90
$put_data['Body'] = file_get_contents( $filename );
0 commit comments