diff --git a/lib/middleware/serveResources.js b/lib/middleware/serveResources.js index cb03b5ae..cf0ec320 100644 --- a/lib/middleware/serveResources.js +++ b/lib/middleware/serveResources.js @@ -63,7 +63,7 @@ function createMiddleware({resourceCollections}) { let stream = resource.getStream(); - if ((type.startsWith("text/") || type === "application/javascript")) { + if (charset === "UTF-8" && (type.startsWith("text/") || type === "application/javascript")) { if (resource._project) { stream = stream.pipe(replaceStream("${version}", resource._project.version)); } else { diff --git a/test/fixtures/application.a/webapp/i18n/i18n_de.properties b/test/fixtures/application.a/webapp/i18n/i18n_de.properties new file mode 100644 index 00000000..dc888eff --- /dev/null +++ b/test/fixtures/application.a/webapp/i18n/i18n_de.properties @@ -0,0 +1 @@ +showHelloButtonText=Say ä! \ No newline at end of file diff --git a/test/fixtures/application.a/webapp/index.html b/test/fixtures/application.a/webapp/index.html index 77b0207c..3d8715b9 100644 --- a/test/fixtures/application.a/webapp/index.html +++ b/test/fixtures/application.a/webapp/index.html @@ -1,9 +1,9 @@
-