title: Set jpa utf-8 encoding in application.properties
body: <p>This is a followup question to the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/18163328/jpa-utf-8-characters-not-persisted">JPA utf-8 characters not persisted</a></p>
  
  <p>The answer (<a href="https://stackoverflow.com/a/32574280">https://stackoverflow.com/a/32574280</a>) worked for me. However, I would like to save those configurations in my application.properties file separate from the url configuration. What would be the name of those configurations?</p>
  
  <p>I've tried:</p>
  
  <p><code>connection.useUnicode=true
  connection.characterEncoding=utf8</code></p>
  
  <p>And then I set them in my Properties in my Configuration class:</p>
  
  <p><code>properties.put("connection.useUnicode", env.getRequiredProperty("connection.useUnicode"));
  properties.put("connection.characterEncoding", env.getRequiredProperty("connection.characterEncoding"));</code></p>
  
  <p>But it isn't working.</p>