Convert a String to binary in swift?
<p>Is there a way to convert a string to binary in Swift?</p>

<p>Found <a href="https://stackoverflow.com/questions/26181221/how-to-convert-a-decimal-number-to-binary-in-swift">this link</a> on SO but it only handles converting decimals. I'm trying to convert special characters and letters as well.</p>

<p>Tried building an array of known ASCII characters and comparing them(worked for letters) but ran into problems comparing the special characters.</p>

<p>Appreciating your responses. </p>