-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated PACTs are stored with System default encoding #395
Comments
Checked on Mac. Added ä to value in a field and it shows up as shown below.
Consumer: Version: Tested OS: Running a check on system default encoding, it shows as us-ascii: |
Does this issue also occur with version 3.3.7? |
It was the Groovy JSON class that was encoding the non-ascii characters into the unicode escape sequences. I have switched to GSON, and the characters are now preserved. As a side note, the unicode escapes are equivalent:
it is just that they are not escaped correctly in the JSON file. |
When I try to generate PACT files with the letters ä, ü, ö and ß. The files are stored in system default encoding and not as expected in UTF-8, so these letters are displayed wrong. Is it possible to force UTF-8 for the json-file generation or is this an issue?
Tested Consumer: pact-jvm-consumer-junit_2.11
Versions:
Tested OSs:
Fileformat: ANSI
Fileformat: ASCII
The text was updated successfully, but these errors were encountered: