{"id":14,"date":"2010-01-25T15:45:00","date_gmt":"2010-01-25T15:45:00","guid":{"rendered":"http:\/\/www.roysac.com\/blog\/wp-admin\/2010\/01\/batch-ms-dos-ascii-to-web-converter-script-2\/"},"modified":"2014-07-17T13:30:31","modified_gmt":"2014-07-17T21:30:31","slug":"batch-ms-dos-ascii-to-web-converter-script-2","status":"publish","type":"post","link":"http:\/\/www.roysac.com\/blog\/2010\/01\/batch-ms-dos-ascii-to-web-converter-script-2\/","title":{"rendered":"Batch MS DOS ASCII to Web Converter Script 2"},"content":{"rendered":"<p>This is <a href=\"http:\/\/www.roysac.com\/blog\/2009\/12\/batch-ms-dos-ascii-to-web-converter-script\/\" target=\"_blank\">an update<\/a> to my?? little script that converts <strong>MS DOS ASCII<\/strong> files, such as NFO&#8217;s?? or FILE_ID.DIZ text files (<strong>Code Page 437<\/strong>, USA) to ASCII files with<strong> HTML<\/strong> encoded <strong>Unicode<\/strong> characters and also to <strong>Unicode<\/strong> text for the use in MS Windows. The HTML encoded ASCII files can be used to display the ASCII art, specifically the &#8220;High ASCII&#8221; or block ASCII art on a web site. The script is written in VBScript, but the release package also includes a Windows executable, which is the VBScript converted via <em>VBSEdit<\/em> by <em>Adersoft<\/em>.<\/p>\n<p>I used the same script to prepare the ASCIIs in my text art galleries on my web site, such as:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.roysac.com\/roy_asciishow.html\">My ASCII Art Gallery<\/a><\/li>\n<li><a href=\"http:\/\/www.roysac.com\/roy_earlyasciishow.html\">My Early ASCII Art Gallery<\/a><\/li>\n<li><a href=\"http:\/\/www.roysac.com\/otherascii.html\">Various ASCII Art by Others<\/a><\/li>\n<li>or my <a href=\"http:\/\/www.roysac.com\/fileid_col.html\">FILE_ID.DIZ Collection<\/a><\/li>\n<\/ul>\n<p>just to name a few.<\/p>\n<p>You can download the script here: <img decoding=\"async\" src=\"http:\/\/www.roysac.com\/images\/icon\/zip.gif\" alt=\"\" \/>?? <a href=\"\/files\/ROY-BATCHCONVERT-ASCII2WEB2.ZIP\" target=\"_blank\">ROY-BATCHCONVERT-ASCII2WEB2.ZIP<\/a> (700KB)<\/p>\n<p>The Release NFO File \ud83d\ude42<\/p>\n<div>\n<pre class=\"ASCII\">\r\n\r\n\r\n      ??????????????????                                        ???????????????     ???????????????                 ??????                               \r\n  ??????????????????????????????????????????               ???        ??????     ?????????????????????????????????????????????????????????????????????       ?????????????????????????????????                                      \r\n    ????????????    ???????????????           ????????????    ??????????????????  ??????????????????????????? ???????????? ????????????    ????????????    ?????????????????????  ??????????????????                                         \r\n    ????????????     ???????????????         ???????????????   ????????????????????? ?????????????????????   ????????????????????????       ????????????  ???????????????    ??????  ???  ???                                          \r\n    ????????????    ??????????????????  ????????????????????? ????????????   ????????????????????? ???????????????     ???????????? ?????????      ??????????????? ???????????????     ???   ???  ???                                           \r\n    ????????????  ????????????????????? ???????????????  ?????????????????????   ??????????????????   ???????????????    ???   ????????????????????????  ??????????????? ????????????      ?????????????????? ???                                           \r\n   ?????? ???????????????????????????  ????????????   ???????????????????????????  ???????????????  ????????? ????????????????????????  ???????????????  ??????????????????????????? ????????????            ??????  \r\n   ???    ???  ?????? ????????? ??????    ?????????????????????????????? ??????????????? ??????  ??????    ??????????????? ?????????       ??????????????? ????????????      ???       \r\n  ??????    ??????  ???   ?????? ??????  ????????????????????? ??????????????????????????? ??????   ???      ?????????????????????        ??? ?????? ???????????????     ?????????     \r\n  ???      ??? ??????   ?????? ??????????????????????????????     ??????????????????  ???????????????      ???????????? ??????       ??????  ???  ????????????     ???????????? \r\n ?????????????????????????????????     ??? ??????????????????????????? ?????????     ????????????  ???????????????   ???????????????  ??????       ???   ???   ??????????????????  ???????????? \r\n         ??????      ???    ???????????? ??????   ?????????   ????????????   ??????????????????????????????   ??????     ??????    ???     ?????????????????????????????? \r\n       ??????        ??????      ??????        ?????????????????????                ???    ??????      ???        ????????????????????? \r\n      ???           ???     ??????           ????????????                      ???????????????????????????              ??? \r\n     ???            ???       ????????????     ???????????????                                          Roy                  \r\n      ??????????????????????????????  ???           ???????????????                            ???????????????????????????  ????????????   ??????                                                                                                \r\n                ?????????                                           ???????????? ?????????  ???????????????????????? ????????? ?????? ????????????                                                                                                                                                                                                                                                        \r\n                                                             ?????????   ???   ?????????   ???????????? ?????????????????? ?????????  \r\n                                                          ????????? ??????   ???  ?????????    ???????????? ??????  ???  ?????????  \r\n                                                          ??????????????????   ????????? ???     ???????????? ??????     ?????????  \r\n                                                           ?????? ???????????? ????????? ???????????????????????????  ??????     ?????????  \r\n                                                              ????????????????????????  ?????????????????????  ?????????     ???????????? \r\n                                                                   ???       ??????    ???       ???    \r\n                         Roy\/SAC presents\r\n\r\n    ??? ??? ?????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????  ?????????????????????????????? ?????? ??? ???\r\n    ???                 Batch ASCII to Web File Converter 2                       ???\r\n    ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\r\n     ?????????                                                                     ?????????\r\n       ??????          Packaged and Released on January 25, 2010                 ??????\r\n        ???                                                                   ???\r\n      ??????                                                                     ??????\r\n     ???                                                                         ???\r\n      ????????                                                                   ????????\r\n                                                ???\r\n                                               ??????  ????????\r\n     ??????????????????????????????? ??????????????????????????????????????????????????       ?????????????????????????????????????????????????????????     ??? ??? ?????? ???????????????????????\r\n     ??????????????????                       ???????? ????????     ??????????????? ?? ??? ???????????????????????????      ???  ??????????????????\r\n       ?????? ??????     Release Notes    ...       ??? ?????????????????? ?????????????????????????????? ??? ????????     ?????? ??????\r\n        ???   ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????  ????????????????????????????????????????????????????????????   ???\r\n      ??????                                      ????????????         ???                 ??????\r\n     ???                                        ?????????                              ???\r\n      ????????                                      ??????                           ????????\r\n\r\n              A little script that converts MS DOS ASCII files, such as NFO's\r\n              or FILE_ID.DIZ text files (Code Page 437, USA) to ASCII  \r\n              but HTML encoded files that can be used to display the ASCII\r\n              art, specifically the \"High ASCII\" or block ASCII art on a\r\n              web site or to Unicode Text files for the use in Windows Apps. \r\n\r\n\r\n     ??????????????????????????? ??? ???????????? ???????????????????????????   ???????????????????????????  ??? ????????? ??? ????????? ??????????????? ??? ???????????????????????????\r\n     ??R??E??L??.??  ??? ???????????? ??????????????????????????? ????????????????????????????????? ??? ????????? ??? ????????? ???????????? ???  ??2??0??1??0??\r\n     ????????????????????????????????? ??? ????????? ????????? ??????????????? ??? ????????? ??? ????????? ?????? ???????????????????????? ????????? ??? ?????????????????????????????????\r\n                    ?????? ????????? ??? ????????? ??? ?????????????????????????????????  ???????????????????????? ??????\r\n                       ?????????   ????????? ???  ???????????????????????????  ????????????????????????\r\n\r\n\r\n              For example the small logo above (which is in DOS ASCII Format)\r\n              would be converted to the following;\r\n\r\n\r\n       ??????????????????????????? \r\n       ??? ???????????? ???????????????\r\n       ????????????   ??????????????????\r\n       ?????????  ??? ????????? ??? ??????\r\n       ??? ??????????????? ??? ?????????\r\n       ??????????????????     ??R??E??L\r\n       ??.??  ??? ???????????? ?????????\r\n       ?????????????????? ????????????\r\n       ????????????????????? ??? ??????\r\n       ??? ??? ????????? ???????????? ???  \r\n       ??2??0??1??0?? ...\r\n\r\n\r\n              Note: I manually added line breaks and spaces to the example for \r\n              NFO layout reasons and it is also not the entire logo.\r\n              I included the files roy.asc and roy.web as examples also.\r\n              The file Roy.TXT contains the same example for the conversion to \r\n              Unicode text result.\r\n\r\n\r\n              The Web Encoded ASCII does not include \r\n Tags for the line???breaks\r\n              You have to add those manually or do what I do on my web site and\r\n              enclose the code in &lt;pre&gt; &lt;\/pre&gt; tags, which preserves the line???breaks\r\n              within the enclosed text.\r\n\r\n              Since the result is Unicode and not DOS ASCII anymore, you can\r\n              use any monospace font to display the ASCII somewhat correctly.\r\n              You won't get a 100% acurate result anyway, because the old\r\n              MS DOS font set is not part of Windows anymore. What you can get\r\n              is only a close aproximation. I use on my web site the font\r\n              \"Lucida Console\", which seems to be installed on many machines.\r\n              If the Windows of the user who visits your page with the ASCII for \r\n              example does not have that font installed, Windows will automatically\r\n              pick another font that comes close. I use the following CSS formatting\r\n              for the PRE tags where I show ASCIIs.  \r\n\r\n              pre {\r\n                 background???color:#000;\r\n                 color:#FFF;\r\n                 display:block;\r\n                 font???family:\"Lucida Console\", monospace;\r\n                 font???size:9pt;\r\n                 line???height:12px;\r\n                 padding:10px;\r\n                 text???align:left;\r\n               }\r\n\r\n               If the PRE Tag is also used for something else on your web site\r\n               then you can also define it for a specific class selector like\r\n\r\n\r\n              pre.asciiart {\r\n              ...\r\n              }\r\n\r\n              You would then also have to extend the PRE HTML tag like this:\r\n\r\n              &lt;pre class=asciiart&gt;\r\n              ...\r\n              &lt;\/pre&gt; \r\n\r\n              The script is designed to convert all files with a specified \r\n              extension (.ASC by default) to web ready files with a new \r\n              extension (.WEB by default, but you could also make it .HTML or\r\n              whatever). \r\n\r\n              There are two additional options, where I recommend\r\n              to use the defaults (which is \"yes\"). \r\n\r\n              The first option is \"HTML Encode?\", which means that all non???US???ASCII \r\n              characters (the 7 bit ASCII codes) will be converted to HTML codes \r\n              like . Also standard ASCII characters that could be misinterpreted \r\n              by HTML or DHTML and XML are also encoded, like the \" becomes \", \r\n              &amp; becomes &amp;, &lt; becomes &lt; and &gt; becomes &gt; etc.\r\n              If you select \"No\", the ASCII will be converted to Windows Unicode (UTF???8)\r\n              instead. \r\n\r\n\r\n              The second one is \"Sanitize?\"\r\n              What that does, is removing ASCII characters with an ASCII code\r\n              smaller than 32, which are special control characters that cannot\r\n              be printed anyway, with 3 exceptions, chr(10) = line???feed, \r\n              chr(13) = cariage???return and chr(9) = tab. LF and CR remain unchanged.\r\n              Tab characters will be converted to 8 spaces, which is the default\r\n              MS DOS tab???stop. You might not want to select \"Yes\", if you convert\r\n              ASCII files to Windows Unicode, but you could, if you like.\r\n\r\n\r\n              Part of this package is the image \"Batch???ASCII2WebOrUniCode???Steps.jpg\",\r\n              which shows screenshots of all the steps where the script goes through.\r\n\r\n              Enjoy!\r\n              Carsten aka Roy\/SAC\r\n\r\n              p.s. This script is freeware. Do with it whatever you like, except\r\n              selling it. You can use it free, copy it, share it, even modify it\r\n              if you like to. You are using it at your own risk. You cannot make me\r\n              liable for any damage or loss of data that might results directly\r\n              or indirectly because of the use of my script. \r\n\r\n              p.s.2 I also included a very early beta of a HTA version of the tool\r\n              with an interface. The conversion from Unicode to ASCII is not supported\r\n              by the HTA application yet and the file selector uses MS Word and might\r\n              not work, if you don't have Office installed. Since the latest security\r\n              updates for Windows XP as well as Vista and Windows 7, the drag and drop\r\n              feature also stopped working unfortunately.\r\n\r\n      ????????'                                                                 `????????\r\n     ???                                                                         ???\r\n      ??????                                                                     ??????\r\n        ??????                                                                 ??????\r\n          ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\r\n                                                ???\r\n                                               ??????  ????????\r\n     ??????????????????????????????? ??????????????????????????????????????????????????       ?????????????????????????????????????????????????????????     ??? ??? ?????? ???????????????????????\r\n     ??????????????????                       ???????? ????????     ??????????????? ?? ??? ???????????????????????????      ???  ??????????????????\r\n       ?????? ??????     Installation    ...       ??? ?????????????????? ?????????????????????????????? ??? ????????     ?????? ??????\r\n        ???   ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????  ????????????????????????????????????????????????????????????   ???\r\n      ??????                                      ????????????         ???                 ??????\r\n     ???                                        ?????????                              ???\r\n      ????????                                      ??????                           ????????\r\n\r\n          You can either execute the VBS script file (which is the source code\r\n          and should be executed by WSCRIPT.EXE, which comes with Windows) or\r\n          run the EXE file. The EXE is just the VBScript converted to an \r\n          executable via VBSEdit by Adersoft.\r\n\r\n              Also check out my little intro \"RoySAC.exe\" :)\r\n\r\n      ????????'                                                                 `????????\r\n     ???                                                                         ???\r\n      ??????                                                                     ??????\r\n        ??????                                                                 ??????\r\n          ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\r\n                                                ???\r\n                                               ??????  ????????\r\n     ??????????????????????????????? ??????????????????????????????????????????????????       ?????????????????????????????????????????????????????????     ??? ??? ?????? ???????????????????????\r\n     ??????????????????                       ???????? ????????     ??????????????? ?? ??? ???????????????????????????      ???  ??????????????????\r\n       ?????? ??????     Greeting ...              ??? ?????????????????? ?????????????????????????????? ??? ????????     ?????? ??????\r\n        ???   ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????  ????????????????????????????????????????????????????????????   ???\r\n      ??????                                      ????????????         ???                 ??????\r\n     ???                                        ?????????                              ???\r\n      ????????                                      ??????                           ????????\r\n                                                ???\r\n           Defacto2.net, Scene.org, Textfiles.com, Pouet.net\r\n           Demoscene.tv, GfxZone, Intro Inferno, C64.org, OSDM, \r\n           AMP, Edge, Sizteen Colors, Flashtro, Old???Skool.net,\r\n           Untergrund.net, Bitfellas, Exotica and everybody else who \r\n           works on preserving the rich history of the scene and makes \r\n           it accessible for future generations to enjoy.\r\n\r\n           Group Greetings:\r\n           Blocktronix (thanks for keeping the ANSI scene alive and kickin)\r\n           CPI (Oldskool forver!)\r\n           Andomeda Software Development (Your demos rock! Period!)\r\n\r\n           Personal Greetings to:\r\n           Madmax\/CPI, Peace\/Testaware, Smash\/Fairlight, Shamen\/Dytec,\r\n           DaLezy, Dipswitch, Mandibular Joint Dysfunction, RaD Man\/ACiD,\r\n           Jason Scott\/Textfiles.com, Ben Garrett\/Defacto2, my blog readers, \r\n           Lord Scarlet\/SixteenColors, Zerovision\/Blocktronics and everybody\r\n           else I know and forgot to mention :)\r\n\r\n            For a full list of greetings, check out my Intro, which is \r\n            included with this release.\r\n\r\n      ????????'                                                                 `????????\r\n     ???                                                                         ???\r\n      ??????                                                                     ??????\r\n        ??????                                                                 ??????\r\n          ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\r\n                                               ???\r\n                                              ??????  ????????\r\n    ??????????????????????????????? ??????????????????????????????????????????????????       ?????????????????????????????????????????????????????????     ??? ??? ?????? ???????????????????????\r\n    ??????????????????                       ???????? ????????     ??????????????? ?? ??? ???????????????????????????      ???  ??????????????????\r\n      ?????? ??????     Other Stuff ...           ??? ?????????????????? ?????????????????????????????? ??? ????????     ?????? ??????\r\n       ???   ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????  ????????????????????????????????????????????????????????????   ???\r\n     ??????                                      ????????????         ???                 ??????\r\n    ???                                        ?????????                              ???\r\n     ????????                                      ??????                           ????????\r\n                                               ???                              \r\n\r\n           Check out the intro in this release \"RoySACIntro.exe\" :)\r\n\r\n           and don't forget visiting http:\/\/www.RoySAC.com\r\n           and to check out my blog at http:\/\/www.roysac.com\/blog\r\n\r\n           Additional URLs you might want to check out\r\n\r\n           Over 300 demos, cracktros and other scene related videos\r\n           http:\/\/www.youtube.com\/sacreleases\r\n\r\n           Scene Images of all sorts\r\n           http:\/\/www.flickr.com\/photos\/cumbrowski\/collections\/72157611288618058\/\r\n           http:\/\/www.flickr.com\/photos\/cumbrowski\/collections\/72157612320706642\/\r\n\r\n           My Mediafire.com file share with tons of files to download!\r\n           http:\/\/www.mediafire.com\/?sharekey=b570d9e07985879c7069484bded33bcd06b0971baa3373fa\r\n\r\n           My ASCII Art Academy to learn more about classic Text Art\r\n           http:\/\/www.roysac.com\/learn\/\r\n\r\n           Links to other useful resources online to learn more about the scene\r\n           http:\/\/www.roysac.com\/roy_links.html\r\n\r\n           Signing off!\r\n\r\n           Roy of Superior Art Creations, CPI, Dytec, \r\n                  Razor 1911, TRSI, TDU???Jam, PNS\r\n\r\n     ????????'                                                                 `????????\r\n    ???                                                                         ???\r\n     ??????                                                                     ??????\r\n       ??????                                                                 ??????\r\n         ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????<\/pre>\n<\/div>\n<p>You can download the script here: <img decoding=\"async\" src=\"http:\/\/www.roysac.com\/images\/icon\/zip.gif\" alt=\"\" \/>?? <a href=\"http:\/\/www.roysac.com\/files\/ROY-BATCHCONVERT-ASCII2WEB2.ZIP\" target=\"_blank\">ROY-BATCHCONVERT-ASCII2WEB2.ZIP<\/a> (700 KB)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Batch-ASCII2WebOrUniCode-Steps\" src=\"http:\/\/www.roysac.com\/blogimages\/BatchASCII2WebOrUniCodeSteps.jpg\" alt=\"Batch-ASCII2WebOrUniCode-Steps\" width=\"455\" height=\"1353\" border=\"0\" \/><\/p>\n<p>You can download the script here: <img decoding=\"async\" src=\"http:\/\/www.roysac.com\/images\/icon\/zip.gif\" alt=\"\" \/>?? <a href=\"http:\/\/www.roysac.com\/files\/ROY-BATCHCONVERT-ASCII2WEB2.ZIP\" target=\"_blank\">ROY-BATCHCONVERT-ASCII2WEB2.ZIP<\/a> (700 KB)<\/p>\n<p>Enjoy!<br \/>Carsten aka Roy\/SAC<\/p>\n<p>PS. This script is freeware. Do with it whatever you like, except selling it. You can use it free, copy it, share it, even modify it if you like to. You are using it at your own risk. You cannot make me liable for any damage or loss of data that might results directly or indirectly because of the use of my script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"BatchASCII2WebBeforeAfter6\" src=\"http:\/\/www.roysac.com\/blogimages\/BatchASCII2WebBeforeAfter6.jpg\" alt=\"BatchASCII2WebBeforeAfter6\" width=\"700\" height=\"248\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is an update to my?? little script that converts MS DOS ASCII files, such as NFO&#8217;s?? or FILE_ID.DIZ text files (Code Page 437, USA) to ASCII files with HTML encoded Unicode characters and also to Unicode text for the use in MS Windows. The HTML encoded ASCII files can be used to display the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13,3],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-ascii","category-text-art","category-tools"],"_links":{"self":[{"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":8,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":883,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions\/883"}],"wp:attachment":[{"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.roysac.com\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}