title: ESC/POS commands are not recognized by Epson TM-T20II
body: <p>I am new to the world of ESC/POS.  I have an Epson TM-T20II printer USB connected to a Windows 7 desktop.  The code below is a sample application obtained from Epson at this link:  <a href="https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=269" rel="nofollow noreferrer">https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=269</a></p>
  
  <p>For my test, I have pasted the code in Notepad and print its content to the Epson printer.  The printer prints the code below "as is".  What do I need to do in order to get the printer to interpret the ESC/POS commands?</p>
  
  <pre><code>ESC "@"
  ESC "3" 18
  ESC "a" 1
  GS "!" 0x11
  0xC9 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xBB LF
  0xBA 0x20 0x20 0x20 0x45 0x50 0x53 0x4F 0x4E 0x20 0x20 0x20 0xBA LF
  0xBA 0x20 0x20 0x20
  GS "!" 0x00
  "Thank you "
  GS "!" 0x11
  0x20 0x20 0x20 0xBA LF
  0xC8 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xCD 0xBC LF
  ESC "2"
  GS "!" 0x00
  ESC "J" 4
  "NOVEMBER 1, 2012  10:30"
  ESC "d" 3
  ESC "a" 0
  "TM-Uxxx                            6.75" LF
  "TM-Hxxx                            6.00" LF
  "PS-xxx                             1.70" LF LF
  GS "!" 0x01
  "TOTAL                             14.45" LF
  GS "!" 0x00
  "---------------------------------------" LF
  "PAID                              50.00" LF
  "CHANGE                            35.55" LF
  ESC "p" 0 2 20
  GS "V" 66 0
  </code></pre>