<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx</link><description>The chcp.com utility is a simple little program sitting in the \WINDOWS\SYSTEM32 subdirectory. Running it with /? willl give some helpful information about its purpose: C:\WINDOWS\system32&amp;gt;chcp /? Displays or sets the active code page number. CHCP</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#544504</link><pubDate>Mon, 06 Mar 2006 18:11:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:544504</guid><dc:creator>Ilya Konstantinov</dc:creator><description>While we're at it, why not try &amp;quot;chcp 65001&amp;quot; (65001 = CP_UTF8)? Amazing but it actually works... but only if you set the console to use a TrueType font (and of course, unless you switch to full-screen text mode).&lt;br&gt;&lt;br&gt;Too bad Lucida Console doesn't contain Hebrew glyphs. Given that there are other monospaced TrueType fonts in my system (such as Courier New, which happens to contain Hebrew glyphs), what makes a TrueType font appear in the console's Properties | Font screen?</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#544651</link><pubDate>Mon, 06 Mar 2006 21:42:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:544651</guid><dc:creator>Ben Cooke</dc:creator><description>When you enable codepage 65001, batch files and cmd scripts no longer run. No idea why, but it's a bit of a show-stopper for chcp 65001.</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#544862</link><pubDate>Tue, 07 Mar 2006 02:06:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:544862</guid><dc:creator>Dean Harding</dc:creator><description>Ilya: See here: &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q247815"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q247815&lt;/a&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#553457</link><pubDate>Fri, 17 Mar 2006 07:42:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:553457</guid><dc:creator>Mike Myers</dc:creator><description>&amp;quot;However, another set that is missing from the list is the ideographic code pages. You cannot use chcp to change to one of the ideographic code pages unless it is also the default system OEM code page.&amp;quot;&lt;br&gt;&lt;br&gt;I installed support for East Asian Languages into my English Windows XP Pro system, and have documents with filenames using ideograph characters. Is there really no way for me to work in the command shell (cmd.exe) with these files? Do I need to go buy a version of XP for the East Asian language I am interested in? I was hoping there was something easier I could do.</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#553487</link><pubDate>Fri, 17 Mar 2006 08:50:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:553487</guid><dc:creator>Michael S. Kaplan</dc:creator><description>It means you cannot change to one of the CJK code pages, Mike. You can certainly try 'chcp 65001' and you can also try 'cmd /u' to see if you can work with them.&lt;br&gt;&lt;br&gt;Or you can even change the default system locale and then the oemcp will match by default if you switch to the right one.&lt;br&gt;&lt;br&gt;Lots of options....</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#556723</link><pubDate>Tue, 21 Mar 2006 19:19:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556723</guid><dc:creator>Mike Myers</dc:creator><description>Thanks for the suggestions Michael. &lt;br&gt;&lt;br&gt;I have seen mention of code page 65001, but I don't see any effect by switching to it. I have created test data in Arabic, in Cyrillic, and in Japanese, and code page 65001 cannot display any of it correctly. At certain font sizes, if I choose Courier New as my console font I can work with Arabic and Cyrillic (on any code page, does not require a chcp).&lt;br&gt;&lt;br&gt;Likewise, 'cmd /u' does not appear to affect the display, although it does a very good job of creating proper Unicode output. That is, I can do a 'dir' and still not *see* anything in the console, but if I do a 'dir &amp;gt; results.txt' then I get a Unicode text file (I believe) that is readable with Notepad and all of the characters display there correctly.&lt;br&gt;&lt;br&gt;I will attempt to change the system locale but had hesitated on trying this because I was hoping to avoid system-wide changes requiring a reboot, whenever I needed to work with certain file data.</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#556771</link><pubDate>Tue, 21 Mar 2006 19:58:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:556771</guid><dc:creator>Michael S. Kaplan</dc:creator><description>Hi Mike,&lt;br&gt;&lt;br&gt;Well, perhaps moving out of the [legacy] console world might be the best solution, in that case? Unicode apps have a much easier time when they are not stuck there....&lt;br&gt;&lt;br&gt;With that said, I had very little trouble converting console projects to Unicode in the past (I'll be blogging about this soon)....</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#568971</link><pubDate>Wed, 05 Apr 2006 17:25:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:568971</guid><dc:creator>Michael S. Kaplan</dc:creator><description>Apologies to Stanislav Kniazev -- I removed the table, since it is really unreadable in that format? Better to just provide tre link to the MSDN topic, instead?</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#593564</link><pubDate>Tue, 09 May 2006 15:43:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:593564</guid><dc:creator>Stanislav Kniazev</dc:creator><description>If you need unicode output in file, you must use command CMD with option /U.&lt;br&gt;If you need unicode output in MS console, you must use the following command:&lt;br&gt;chcp 65001 &amp;amp;&amp;amp; &amp;lt;your_command&amp;gt;, where &amp;lt;your_command&amp;gt; is any command or batch file. Font property for MS console in this case must be of course changed to &amp;quot;Lucida Console&amp;quot;.&lt;br&gt;In the following table you find code pages for all charsets:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/charsets/charset4.asp"&gt;http://msdn.microsoft.com/workshop/author/dhtml/reference/charsets/charset4.asp&lt;/a&gt;&lt;br&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#7379853</link><pubDate>Sat, 02 Feb 2008 02:43:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7379853</guid><dc:creator>Ran Ever-Hadani</dc:creator><description>&lt;p&gt;I got here via a mutual friend (Google). &amp;nbsp;I want to use the 1252 code page. &amp;nbsp;Chcp 1252 seems to respond well (it says 1252 is now active) but then when I type a file that contains upper ascii in it, it still display it as one would expect under page 437. &amp;nbsp;I try writing to the screen from a program, I try to type characters directly holding down ALT and typing the decimal value - it still show me the page 437 characters, not the 1252 characters. &amp;nbsp;As far as I can tell, all CHCP does under XP is tell you that your page is active, otherwise nothing. :( &amp;nbsp;I would greatly appreciate any pointers. &amp;nbsp;Thank.&lt;/p&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#8313275</link><pubDate>Tue, 18 Mar 2008 14:39:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8313275</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;P&gt;Change out of the raster font, perhaps? Move to Lucida Console....&lt;/P&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#8977470</link><pubDate>Mon, 06 Oct 2008 08:17:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8977470</guid><dc:creator>rbouman</dc:creator><description>&lt;p&gt;interesting reading here, thank you.&lt;/p&gt;
&lt;p&gt;I've had an occurrance of the path variable on xp pro being displayed correctly once only as human readable then as ascii chars only.&lt;/p&gt;
&lt;p&gt;turned out the codepage for this machine was set to 850, if I then manually set the codepage to 437, the path variable remains human readable [that is; from a command prompt screen output].&lt;/p&gt;
&lt;p&gt;the mystery is ; the machine is set to australian english in regional settings; there's no multi linguallity [is that a word?] other than that.&lt;/p&gt;
&lt;p&gt;what else could possibly cause the path variable [and it's the only environment variable to be affected] to display ascii chars?&lt;/p&gt;
&lt;p&gt;I'm also making the assumption that the ascii chars may cause some apps. to not read the path var. properly, right?&lt;/p&gt;</description></item><item><title>Even the prisoners of the motherland use cp1252 (though they escaped 037)</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#8982863</link><pubDate>Tue, 07 Oct 2008 10:03:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8982863</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;This blog dedicated to six weeks I almost got to spend in Australia nearly 15 years ago, and a Kinks&lt;/p&gt;
</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#9026969</link><pubDate>Fri, 31 Oct 2008 20:15:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9026969</guid><dc:creator>Accsem3</dc:creator><description>&lt;p&gt;&amp;gt;If you need unicode output in file, you must use command CMD with option /U. &lt;/p&gt;
&lt;p&gt;I've tried &lt;/p&gt;
&lt;p&gt;CMD /U Tree /a &amp;gt; temp.txt&lt;/p&gt;
&lt;p&gt;in line 1 of batch file, which stop in this command and nothing is actually executed.&lt;/p&gt;
&lt;p&gt;temp.txt is not generated and the script does not continue.&lt;/p&gt;
&lt;p&gt;Using a Japanese Windows XP, eastern language enabled of course&lt;/p&gt;
&lt;p&gt;And for CHCP, the dos batch script will just close after running CHCP, anything below CHCP will not be executed as well.&lt;/p&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#9068293</link><pubDate>Fri, 14 Nov 2008 05:53:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9068293</guid><dc:creator>sslaith</dc:creator><description>&lt;p&gt;Is there a replacement for chcp on a 64bit client, I was browsing through the system32 and found chcp,&lt;/p&gt;
&lt;p&gt;but looking through sysWoW64, &amp;nbsp;I saw nothing that resembles a chcp setting.&lt;/p&gt;</description></item><item><title>re: chcp can't do everything</title><link>http://blogs.msdn.com/michkap/archive/2006/03/06/544251.aspx#9911126</link><pubDate>Thu, 22 Oct 2009 05:38:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9911126</guid><dc:creator>DevoMax</dc:creator><description>&lt;p&gt;1. Running CHCP 65001 causes subsequent batch files not to be executed at all.&lt;/p&gt;
&lt;p&gt;2. In my case, the offending character is &amp;quot;&amp;#246;&amp;quot;, which is contained in the 437 code page, so I don't understand why the batch file fails if it contains that character. Works fine if I copy/paste into the command prompt.&lt;/p&gt;
&lt;p&gt;3. Running CMD /U means subsequent commands in the batch file will be ignored.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item></channel></rss>