Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Fix charset of generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Dec 9, 2018
1 parent ca8d936 commit 2eb3f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GenerateReDoc extends DefaultTask {
}
outputDir.mkdirs()

new File(outputDir, 'index.html').withWriter { writer ->
new File(outputDir, 'index.html').withWriter('UTF-8') { writer ->
XmlUtil.serialize(html, writer)
}
project.copy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class GenerateSwaggerUI extends DefaultTask {

private void buildSwaggerSpec() {
def inputJson = Mappers.YAML.readTree(inputFile)
new File(outputDir, 'swagger-spec.js').withWriter { writer ->
new File(outputDir, 'swagger-spec.js').withWriter('UTF-8') { writer ->
writer.append('window.swaggerSpec=')
Mappers.JSON.writeValue(writer, inputJson)
}
Expand Down

0 comments on commit 2eb3f66

Please sign in to comment.