title: Multi line base64 string returns only last line after decoding in Python 3
body: <p>I have a set of base64 encoded strings. When I try to decode the same, the decoded text just has the last line of the actual string. On any online base64 decoder, the entire text is displayed. I have tried with and without encoding the text to utf-8 prior to decoding.
  Here is my code:</p>
  <pre><code>import base64
  
  encodedStr = &quot;QXJyaXZhbCBNZXNzYWdlDURhdGUgKFVUQyk6IDI2SlVMMjAN&quot;
  
  #with encoding
  encodedstr_bytes = encodedStr.encode('utf-8')
  decodedBytes = base64.b64decode(encodedstr_bytes)
  decodedStr = decodedBytes.decode('utf8')
  print(decodedStr)  
  
  
  #without encoding
  decodedBytes = base64.b64decode(encodedStr)
  decodedStr = decodedBytes.decode(&quot;utf-8&quot;)
  print(decodedStr)
  
  </code></pre>
  <pre><code>Output : 
  
  Date (UTC): 26JUL20
  Date (UTC): 26JUL20
  
  
  
  Required Output : 
  
  Arrival Message
  Date (UTC): 26JUL20
  </code></pre>