<p>If I press <kbd>Ctrl</kbd>+<kbd>B</kbd> that ought to give me ASCII code 2, but <kbd>Ctrl</kbd>+<kbd>C</kbd> is going to be interpreted as a Break.</p>

<p>So I figure I've got to redirect a file in.  How do I get these characters into a file?</p>

[{'answer_id': 15542, 'author': 'Steve M', 'author_id': 1693, 'author_profile': 'https://Stackoverflow.com/users/1693', 'pm_score': 2, 'selected': False, 'text': '<pre><code>perl -e \'print "\\xFF"\'\n</code></pre>\n\n<p>where <code>FF</code> is the hex code of the ACSII code you want to print. So for ACSII code 2, it would be \\x02.\n</p>\n'}, {'answer_id': 15574, 'author': 'Daniel Fone', 'author_id': 1848, 'author_profile': 'https://Stackoverflow.com/users/1848', 'pm_score': 3, 'selected': False, 'text': "<pre><code>echo $'\\002\\003' &gt; ./myfile\n</code></pre>\n"}, {'answer_id': 15577, 'author': 'Josh', 'author_id': 257, 'author_profile': 'https://Stackoverflow.com/users/257', 'pm_score': 4, 'selected': True, 'text': "<p><kbd>Ctrl</kbd>-<kbd>V</kbd> escapes the next keystoke.  That's how you can get a <kbd>Ctrl</kbd>-<kbd>C</kbd> out: <kbd>Ctrl</kbd>-<kbd>V</kbd> <kbd>Ctrl</kbd>-<kbd>C</kbd></p>\n"}]
['https://Stackoverflow.com/questions/15537', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/257/']