title: How to handle single quotes in internationalization constants?
body: <p>We define all our internationalized constant strings in a single properties file <code>LocalizableResource_xx.properties</code> (one per language) located in <code>google.gwt.i18n.client</code>. </p>
  
  <p>This way it is possible to access the constants in Java code via the constants interface</p>
  
  <pre><code>Window.alert(myConstants.helloWorld());
  </code></pre>
  
  <p>as well as to use them inside the UiBinder <code>.ui.xml</code></p>
  
  <pre><code>&lt;ui:attribute key="some.key" name="text" description="useful info" /&gt;
  </code></pre>
  
  <p>This approach doesn't work well if the string contains a single quote (<code>'</code>). This is because the GWT compiler throws a <code>java.text.ParseException: Unterminated single quote:</code> when it processes the <code>.ui.xml</code> files. If we escape the quote, meaning double it (<code>''</code>), the compiler passes but the strings accessed via the constant interface contain both single quotes (like in <code>You can''t do that</code>).</p>
  
  <p>Replacing the single quotes with the utf-8 encoding \u0027 doesn't help (same exception as above).</p>
  
  <p>Is it somehow possible to use the same properties file in UiBinder templates as well as in Java code without running into annoying single quote problems?</p>