<?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>$OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx</link><description>You might have noticed that “findstr” does not work properly with non-English text in PowerShell. For example: Let’s create a text file with some Chinese characters in it. PS C:\&amp;gt; ${c:\test.txt}=" 中文 " Try to use findstr to find one of the Chinese</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1263877</link><pubDate>Tue, 12 Dec 2006 06:23:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1263877</guid><dc:creator>soregasi</dc:creator><description>&lt;p&gt;In this day and age, why would you default to ASCII? I can understand the history of CMD and the difficult in changing it now, but PowerShell is a clean break. It would have been an excellent opportunity to fully enable Unicode (by default).&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1264039</link><pubDate>Tue, 12 Dec 2006 07:07:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1264039</guid><dc:creator>Jeffrey L. Whitledge</dc:creator><description>&lt;p&gt;Why are we still mucking about with codepages in 2006? Why can’t we just use Unicode in Powershell/CMD?&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1264116</link><pubDate>Tue, 12 Dec 2006 07:20:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1264116</guid><dc:creator>hayate</dc:creator><description>&lt;p&gt;Hah!&lt;/p&gt;
&lt;p&gt;It seems that Wei Wu U are Chinese.&lt;/p&gt;
&lt;p&gt;So am I.&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1264378</link><pubDate>Tue, 12 Dec 2006 08:24:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1264378</guid><dc:creator>Rei Miyasaka</dc:creator><description>&lt;p&gt;Why isn't it UTF8 or the current codepage by default?&lt;/p&gt;
&lt;p&gt;If there's a reason for it to be ASCII, I presume there must be a problem with other encodings.&lt;/p&gt;
&lt;p&gt;What are those problems?&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1359478</link><pubDate>Mon, 25 Dec 2006 03:19:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1359478</guid><dc:creator>oidon</dc:creator><description>&lt;p&gt;I'd really like to hear a response to these questions. The biggest flaw in CMD is its dependency on legacy encodings, and that heritage seems to still be alive in PowerShell. Unless there is rational reason, this seems like a major flaw.&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#1375525</link><pubDate>Thu, 28 Dec 2006 21:32:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1375525</guid><dc:creator>Remi</dc:creator><description>&lt;p&gt;There also seems to be a Codepage issue when using edit.exe from powershell.&lt;/p&gt;
&lt;p&gt;all keys are remapped to what seems like a random section of a keymap (possibly greek, i thought i saw a capital phi in there)&lt;/p&gt;
&lt;p&gt;How would you go about changing the codepage before you start edit.exe?&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#2801368</link><pubDate>Wed, 23 May 2007 01:18:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2801368</guid><dc:creator>Rick</dc:creator><description>&lt;p&gt;I have a set of multi-language websites to dynamically generate off a common MS Access database.&lt;/p&gt;
&lt;p&gt;Access can handle unicode text and I have fields of English and Korean, Japanese, Chinese equivalents for things.&lt;/p&gt;
&lt;p&gt;My OS (dual booted XP PRo and Vista home prem) have the languages setup via language bar - primary is English (United States)&lt;/p&gt;
&lt;p&gt;I can't get Powershell to use the unicode encoding.&lt;/p&gt;
&lt;p&gt;e.g. (サウスホキアンガ) looks like this (????????&lt;/p&gt;
&lt;p&gt;PsSH &amp;gt; &amp;nbsp;[Console]::OutputEncoding&lt;/p&gt;
&lt;p&gt;IsSingleByte &amp;nbsp; &amp;nbsp; &amp;nbsp;: True&lt;/p&gt;
&lt;p&gt;BodyName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: IBM437&lt;/p&gt;
&lt;p&gt;EncodingName &amp;nbsp; &amp;nbsp; &amp;nbsp;: OEM United States&lt;/p&gt;
&lt;p&gt;HeaderName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: IBM437&lt;/p&gt;
&lt;p&gt;WebName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : IBM437&lt;/p&gt;
&lt;p&gt;WindowsCodePage &amp;nbsp; : 1252&lt;/p&gt;
&lt;p&gt;IsBrowserDisplay &amp;nbsp;: False&lt;/p&gt;
&lt;p&gt;IsBrowserSave &amp;nbsp; &amp;nbsp; : False&lt;/p&gt;
&lt;p&gt;IsMailNewsDisplay : False&lt;/p&gt;
&lt;p&gt;IsMailNewsSave &amp;nbsp; &amp;nbsp;: False&lt;/p&gt;
&lt;p&gt;EncoderFallback &amp;nbsp; : System.Text.InternalEncoderBestFitFallback&lt;/p&gt;
&lt;p&gt;DecoderFallback &amp;nbsp; : System.Text.InternalDecoderBestFitFallback&lt;/p&gt;
&lt;p&gt;IsReadOnly &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: True&lt;/p&gt;
&lt;p&gt;CodePage &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 437&lt;/p&gt;
&lt;p&gt;Is there another source of object values other than [Console]::OutputEncoding ??&lt;/p&gt;
&lt;p&gt;RickW&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#2872669</link><pubDate>Fri, 25 May 2007 17:20:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2872669</guid><dc:creator>Jacques Beaurain</dc:creator><description>&lt;p&gt;This just worked for me for getting UTF8 Unicode:&lt;/p&gt;
&lt;p&gt;$OutputEncoding = New-Object -typename System.Text.UTF8Encoding&lt;/p&gt;</description></item><item><title>re: $OutputEncoding to the rescue</title><link>http://blogs.msdn.com/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx#5280395</link><pubDate>Fri, 05 Oct 2007 03:47:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5280395</guid><dc:creator>King Kong</dc:creator><description>&lt;p&gt;Hi, how do you get to display Chinese fonts, or for that matter any Unicode typefaces, in your shell?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>