{"id":8182,"date":"2021-11-26T14:38:24","date_gmt":"2021-11-26T14:38:24","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=8182"},"modified":"2021-11-26T14:43:28","modified_gmt":"2021-11-26T14:43:28","slug":"windows-alt-codes-not-appearing-in-batch","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/windows-alt-codes-not-appearing-in-batch\/28775.html","title":{"rendered":"Windows Alt Codes Not Appearing In Batch."},"content":{"rendered":"<p>Well, I&#8217;ve been trying to make a simple menu, and at this point its just a bunch of echos, it doesn&#8217;t even do anything complicated. And it&#8217;s not complicated. Or so I thought. When trying to display characters such as (alt+186)(\u2551) or (alt+200)(\u255a) or (alt+204)(\u2560), to make a simple visual folder tree, it forces me to save it as Unicode or Unicode big endian or utf8 because the ASCII doesn&#8217;t recognize the symbols. So if I continue to save it in ASCII it all turns to dashes and plus signs. If I change it to something else and run it, it simply won&#8217;t work. The interesting thing is, if I open command prompt, it does allow me to directly type in the characters, and some of them are even used in the \/tree command!! I have searched all over the internet, and below I&#8217;ll list everything I&#8217;ve tried<\/p>\n<p>Copy the symbols into wordpad (they change to something different) and then copy them back to notepad. Save and run, the symbols should appear.<br \/>\n-Well, when I copy them back out of wordpad they return to normal. \ud83d\ude41<\/p>\n<p>Add chcp 65001 to the beginning of the code.<br \/>\n&#8211; Allright, but then I&#8217;m forced to save it as something other than ASCII encoding because ASCII reverts the symbols to pluses and dashes, and it still doesn&#8217;t work if I save it in a different encoding.<\/p>\n<p>well how about chcp 1252?<br \/>\n&#8211; Nope, same as above \ud83d\ude41<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":14},"question-category":[55],"question_tags":[],"class_list":["post-8182","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/8182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=8182"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=8182"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=8182"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=8182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}