Handling of umlauts
In our project we use spring cloud contracts and the maven plugin to generate contract tests. We use a groovy file for the contract definition. In this groovy file there is the following code:
...
"labels" : [
[
"languageCode": "EN",
"text" : "Fiscal Year"
],
[
"languageCode": "DE",
"text" : "Geschäftsjahr"
]
]
...
When we execute mbt build the resulting spring cloud contract yml file contains text: "Gesch�ftsjahr". Afterwards the contract test fails, because of the following error:
com.fasterxml.jackson.databind.JsonMappingException: java.io.CharConversionException: Invalid UTF-8 middle byte 0x66 (at char #4203, byte #4095)
When we use e.g. mvn clean verify everything works like expected. The text in the yml is text: "Geschäftsjahr". The same is true when spring-cloud-contract:generateTests is executed to generate the spring cloud contract yml.
Not sure if this is a problem of how the mbt build is executed. The mbt build is executed using the terminal of Intelij.
Which encoding is mbt build using by default? Can the encoding be configured somehow?
Please provide the following info:
- MBT Version:
- 1.2.18
- OS Version:
- Windows 10 Enterprise