Binary value of a Character in pure Swift
<p>I need to convert a character in its binary string.</p>

<p>Ex : C = 34 = "1000011"</p>

<p>My work in progress look like this. It's work only for "C" character :</p>

<pre><code>import Foundation

func charToBin(c:Character) -&gt; String {
    let binaire = 34
    return String(binaire, radix: 2)
}

let c:Character = "C"
let b = charToBin(c)
</code></pre>