Convert bitarray to string
<p>Could someone help me to convert bittarray to string properly?
I wrote this:</p>

<pre><code>static String BitArrayToStr(BitArray ba)
        {
            byte[] strArr = new byte[ba.Length / 8];

            System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();

            for (int i = 0; i &lt; ba.Length / 8; i++)
            {
                for (int index = i * 8, m = 1; index &lt; i * 8 + 8; index++, m *= 2)
                {
                    strArr[i] += ba.Get(index) ? (byte)m : (byte)0;
                }
            }

            return encoding.GetString(strArr);
        }
</code></pre>

<p>but on the output I have this: "���*Ȱ&amp;����L9��q�zȲP���*Ȱ&amp;����L9��q�zȲP���*Ȱ&amp;Y(W�" -many unrecognised symbols, what shoud I do?</p>
