title: New line chars in AlertDialog Android
body: <p>I'm receiving a string from a windows application, the string is like this: </p>
  
  <blockquote>
    <p>"some text\r\nsome other text"</p>
  </blockquote>
  
  <p>When I display the string in an alert dialog I see the following:</p>
  
  <blockquote>
    <p>"some text<strong>rn</strong>some other text"</p>
  </blockquote>
  
  <p>The same string is showing correctly on a TextView, but not in an AlertDialog. </p>
  
  <p>Please advice what I should do.</p>
  
  <p>Best Regards.</p>
  
  <p><strong>Edit</strong>
  This is what I tried so far:</p>
  
  <pre><code>CustomDialog.Builder dialog = new CustomDialog.Builder(this, "", getString(R.string.ok));
      dialog.contentColor(getResources().getColor(R.color.content_color));
      dialog.titleColor(getResources().getColor(R.color.content_color));
      dialog.positiveColor(getResources().getColor(R.color.cpb_red));
      dialog.content(Message.replace("\r\n", "\n"));
      dialog.build().show();
  </code></pre>
  
  <p><strong>Edit 2:</strong>
  Let me explain more, I receive a JSON response from a WCF Service on Windows, parse JSON using <a href="https://github.com/alibaba/fastjson" rel="nofollow">FastJson</a>
  the text I receive from JSON after parsing is </p>
  
  <blockquote>
    <p>Server Will\r\n be down for maintenance</p>
  </blockquote>
  
  <p>We just added \r\n for testing purpose but I'm sure someone will use them when sending data to Android. 
  I have tried replacing using replace function, but no success.</p>