title: Weird encoding in 8-bit binary file
body: <p>I am trying to write 8-bit data (specifically, integers ranging from 0 to 256) to an 8-bit binary file. Apparently, this can mean a lot of different things. </p>
  
  <p>To me, this meant I should just output numbers 0-256 to a file and save it as ".bin". E.g.: 12, 31, 52, 34, etc.</p>
  
  <p>However, when I look at the example file for the function I am using, the encoding is something like this:</p>
  
  <pre><code>$D´/êÌ4¹äæ¸à©+%+
  ü§Ö¾ZýDƒöDÛW.©òŒ¡¤¤ÝÎ¹õ¬&gt;Ž€R˜ZêO3»'OtB A¡…ÛÜWŒôðÉ£«AŠÓ¡m7?Yu![%øËÑÔOƒ»$4‚yÌlm7Û÷(Ó2'h&amp;^Îc¦ý£Ê)C­u!ýú}|“ï˜¤Fi    fgfôõ†Aó›   sÇ;ÁFlä½À‰Z« &gt;2¢*ÚyÓ©’¨¿ì-Ÿ1Ê6‰&gt;çŸÃÄ±²(€Ó?PãwG‚k©Þ¨&lt;äÎ5ÚHç~—ƒ÷û‡ì™¦œÆ`–­n¯Ó
  AüÄ †ný^D`ÜúYD'Ãñì4ß%KÚz| ±¢m/ð±ð‡ƒ–Xm ‰;2®d’+@á¤DtïšÆ¯+Ÿ“,XCg"s&gt;CÅí1JíšÚlÌóüªí
  ÷Eª´ÜW¤æŽYÄãw‘IÃuÐç’ÈyX”22é[f2ÀCƒ*  e|Ë›:áæ²€´µ‰ûcÇz(¡‰ýY#rWÖ8BjnKó@ýx´l$WÂX[¦,ä3÷òiabi¾2eó¾Ù[ŽOfB”÷FIÈJög¹æO°¼qÖüè×TáQÿYªqãˆ
  Vh=eN¦Sœ ãÓšÇ
  ‡WÜÀìé:”lýT]˜ÇIübjüYµÕE¨¹nÓé‰Šñañ—(hrû6YÈÐ³-a‚™A_LnŸË˜jAì“Æ€(9Èã·âÁzW’d°ß¢Ä1ŸôˆUÀ&amp;Ú:ÐÂk³}ø/râ."¤ƒ:¡WÙŠ€¥â„´Ý¯nõoWDÉ¨®¸áÅzø !ú•g‰\òL¡-í¦°nBÖÂlÒÚëžÆlºNz[àŠ»–Àé1ó6©Â¼¹æö·œ¹#
  “ÍìqåŸW¤ª
  *‘=_.‰^4{@»@Ã{µÕ³`
  </code></pre>
  
  <p>My question is, how can I convert a list of 8-bit integers into whatever file-type is specified above?</p>
  
  <p>Edit:
  To be clearer, I have already written these integers to a ".bin" file, and my file is perfectly human-readable. But, the function requires the input to be in the non-human-readable format I've shown above. How do I convert my human-readable numbers into the non-human-readable format above?</p>