title: percentage symbol in strings.xml
body: <p>I'm trying to format a string from string.xml to reuse it with several Values. I'm running into some problems as the String should also contain the percentage-symbol which is used by the formatter. I already tried to replace the % symbol by its Unicode presentation but that doesn't seem to work:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
      &lt;string name=&quot;teststring&quot;&gt;The new value is %1$s%&lt;/string&gt;
      &lt;string name=&quot;teststring2&quot;&gt;The new value is %1$s\u0025&lt;/string&gt;
      &lt;string name=&quot;teststring3&quot;&gt;The new value is %1$s&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>Java Code:</p>
  <pre><code>String value = &quot;25&quot;;
  String formattedString = context.getResources().getString(R.string.teststring), value);
  </code></pre>
  <p>In this example, <code>teststring</code> and <code>teststring2</code> will produce an error, while <code>teststring3</code> works fine. What's the correct way to put that % symbol in the xml-string to get &quot;The new value is 25%&quot; as formatted String?</p>
  <p>Stacktrace:</p>
  <pre><code>FATAL EXCEPTION: main
  java.util.UnknownFormatConversionException: Conversion: 
      at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2304)
      at java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:2298)
      at java.util.Formatter$FormatSpecifierParser.parseConversionType(Formatter.java:2377)
      at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2348)
      at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2281)
      at java.util.Formatter.doFormat(Formatter.java:1069)
      at java.util.Formatter.format(Formatter.java:1040)
      at java.util.Formatter.format(Formatter.java:1009)
      at java.lang.String.format(String.java:1988)
      at android.content.res.Resources.getString(Resources.java:343)
      at (... and so on)
  </code></pre>
  <p>The correct answer is</p>
  <pre><code>&lt;string name=&quot;teststring&quot;&gt;The new value if %1$s%%&lt;/string&gt;
  </code></pre>
  <p>formatted=&quot;false&quot; must not be set.</p>