{"id":2203,"date":"2014-06-05T16:00:15","date_gmt":"2014-06-05T23:00:15","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=2203"},"modified":"2014-10-03T12:19:05","modified_gmt":"2014-10-03T19:19:05","slug":"unicode-and-the-windows-console","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2014\/06\/unicode-and-the-windows-console\/","title":{"rendered":"Unicode and the Windows Console"},"content":{"rendered":"<p><strong>Update:  after several more hours of Googling and experimenting, I have found a way to display Japanese in the Console.  For more information, check out my new post, &#8220;<a href=\"http:\/\/www.curlybrace.com\/words\/2014\/10\/03\/windows-console-and-doublemulti-byte-character-set\/\">Windows Console and Double\/Multi Byte Character Set<\/a>&#8220;.<\/strong>  The rest of this post is still accurate with regards to Unicode support and Western system locales.<\/p>\n<p>Have you been hoping to see Japanese (or Thai, Hindi, Arabic, etc.) characters appear when you type <code>dir<\/code> into your command prompt? Well, prepare to be disappointed, as the Windows <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd317752(v=vs.85).aspx\">CMD.exe Console <em>cannot<\/em> display Unicode characters<\/a>. You&#8217;ll have to use the Powershell ISE if you want to see full Unicode text output.<\/p>\n<p>The best that the Command Shell can do is to write out boxes or question marks and, when characters are marked and copied, the clipboard will be populated with the correct Unicode characters. Those characters can then be pasted into smarter executables, like Notepad.<\/p>\n<p>Michael S. Kaplan, an expert on all things Unicode and Microsoft, wrote about this at great length on MSDN Blogs. Unfortunately, Microsoft decided to wipe his blog from the Internet, even though it breaks links from the likes of Raymond Chen&#8217;s The Old New Thing.<\/p>\n<p>Michael&#8217;s relevant blog posts can be found on The Internet Archive&#8217;s Wayback Machine:<\/p>\n<ul>\n<li><a href=\"https:\/\/web.archive.org\/web\/20130519074717\/http:\/\/blogs.msdn.com\/b\/michkap\/archive\/2010\/04\/07\/9989346.aspx\">Anyone who says the console can&#8217;t do Unicode isn&#8217;t as smart as they think they are<\/a> from 4\/7\/2010 (explains that the Unicode characters won&#8217;t display, but they will copy to the clipboard).<\/li>\n<li><a href=\"https:\/\/web.archive.org\/web\/20130620083647\/http:\/\/blogs.msdn.com\/b\/michkap\/archive\/2010\/02\/15\/9963784.aspx\">The real problem(s) with all of these console &#8220;fallback&#8221; discussions<\/a> from 2\/15\/2010<\/li>\n<li><a href=\"https:\/\/web.archive.org\/web\/20130615071848\/http:\/\/blogs.msdn.com\/b\/michkap\/archive\/2010\/05\/07\/10008232.aspx\">Cunningly conquering communicated console caveats. Comprende, mon Capit\u00e1n?<\/a> from 5\/7\/2010 (provides functions to determine whether output is to the Console or the Powershell ISE).<\/li>\n<li><a href=\"https:\/\/web.archive.org\/web\/20130620152913\/http:\/\/blogs.msdn.com\/b\/michkap\/archive\/2010\/09\/23\/10066660.aspx\">A confluence of circumstances leaves a stone unturned&#8230;<\/a> from 9\/23\/2010 (discusses problems with stdin).<\/li>\n<li><a href=\"https:\/\/web.archive.org\/web\/20121203025829\/http:\/\/blogs.msdn.com\/b\/michkap\/archive\/2008\/03\/18\/8306597.aspx\">Conventional wisdom is retarded, aka What the @#%&amp;* is &#95;O&#95;U16TEXT?<\/a> from 3\/18\/2008 (explains wide-character output).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Update: after several more hours of Googling and experimenting, I have found a way to display Japanese in the Console. For more information, check out my new post, &#8220;Windows Console and Double\/Multi Byte Character Set&#8220;. The rest of this post &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2014\/06\/unicode-and-the-windows-console\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,283],"tags":[],"class_list":["post-2203","post","type-post","status-publish","format-standard","hentry","category-technology","category-windows-technology"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=2203"}],"version-history":[{"count":7,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2203\/revisions"}],"predecessor-version":[{"id":2267,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2203\/revisions\/2267"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=2203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=2203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=2203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}