Tuesday, 8 October 2019

Encoding Issue Running Gradle Test

Gradle setup: if having a problem at the command line

It may due to missing encoding set in the Gradle property.

We may setup the encoding convention to force the JVM using a specific encoding strategy.

org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m 
-XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

Setup Gradle Properties

JVM Configuration Attributes

Intellij setup: if having a problem at the IDE

Intellij  GOTO 'Help' Tab, Click 'Edit Custom VM Option'

adding

-Dfile.encoding=UTF8






No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...