<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>s h a n . m o o n b a s e . n e t</title>
	<atom:link href="http://shan.moonbase.net/feed" rel="self" type="application/rss+xml" />
	<link>http://shan.moonbase.net</link>
	<description>shan&#039;s home base online</description>
	<lastBuildDate>Fri, 24 Feb 2012 17:53:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Armware</title>
		<link>http://shan.moonbase.net/2012/02/17/armware</link>
		<comments>http://shan.moonbase.net/2012/02/17/armware#comments</comments>
		<pubDate>Fri, 17 Feb 2012 19:13:30 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[What's New?]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1054</guid>
		<description><![CDATA[My left arm hardware (sans the &#8216;lag&#8217; screws that could not be safely removed). I wonder what this much surgical grade titanium is worth&#8230;]]></description>
			<content:encoded><![CDATA[<div id="attachment_1055" class="wp-caption alignleft" style="width: 160px"><a href="http://shan.moonbase.net/wp-content/uploads/2012/02/hardwarearm.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2012/02/hardwarearm-150x150.jpg" alt="Armware" title="hardwarearm" width="150" height="150" class="size-thumbnail wp-image-1055" /></a><p class="wp-caption-text">Armware</p></div>

<p>My left arm hardware (sans the &#8216;lag&#8217; screws that could not be safely removed). I wonder what this much surgical grade titanium is worth&#8230;</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2012/02/17/armware' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2012/02/17/armware/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Addicted to Learning?</title>
		<link>http://shan.moonbase.net/2011/11/06/addicted-to-learning</link>
		<comments>http://shan.moonbase.net/2011/11/06/addicted-to-learning#comments</comments>
		<pubDate>Sun, 06 Nov 2011 19:05:37 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1048</guid>
		<description><![CDATA[I spent so much time in school you would think I would be glad to be done with it&#8230; and I was, for a while anyway. Yet after a few months of school free existence, in the evening I often found myself picking up text books or reference manuals. I&#8217;ve come to realize, that I [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1049" class="wp-caption alignright" style="width: 160px"><a href="http://shan.moonbase.net/wp-content/uploads/2011/11/205448main_Aeronautics_Parts_of_Airplane.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2011/11/205448main_Aeronautics_Parts_of_Airplane-150x150.jpg" alt="Aeronautics - parts of airplanes" title="Aeronautics" width="150" height="150" class="size-thumbnail wp-image-1049" /></a><p class="wp-caption-text">Aeronautics</p></div>I spent so much time in school you would think I would be glad to be done with it&#8230; and I was, for a while anyway. Yet after a few months of school free existence, in the evening I often found myself picking up text books or reference manuals.  </p>

<p>I&#8217;ve come to realize, that I greatly enjoy the act of learning and gaining knowledge. So, I&#8217;ve enrolled in a couple of graduate classes in Aeronautics, just because I find it to be a fascinating subject. </p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/11/06/addicted-to-learning' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/11/06/addicted-to-learning/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Talk like ye be a pirate!</title>
		<link>http://shan.moonbase.net/2011/09/19/talk-like-ye-be-a-pirate</link>
		<comments>http://shan.moonbase.net/2011/09/19/talk-like-ye-be-a-pirate#comments</comments>
		<pubDate>Mon, 19 Sep 2011 15:21:57 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1022</guid>
		<description><![CDATA[Arrr, ye scruvy dogs! It be International Talk Like a Pirate Day. Today only me ol&#8217; blog will be readin&#8217; most piratey!]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.moonbase.net/pirate.png" alt="International Talk Like A Pirate Day" title="pirate" width="88" height="150" align="right" />Arrr, ye scruvy dogs! It be International Talk Like a Pirate Day. Today only me ol&#8217; blog will be readin&#8217; most piratey!</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/09/19/talk-like-ye-be-a-pirate' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/09/19/talk-like-ye-be-a-pirate/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX Startup Shortcuts</title>
		<link>http://shan.moonbase.net/2011/07/28/osx-startup-shortcuts</link>
		<comments>http://shan.moonbase.net/2011/07/28/osx-startup-shortcuts#comments</comments>
		<pubDate>Thu, 28 Jul 2011 14:54:04 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1004</guid>
		<description><![CDATA[Startup Shortcuts Hold the &#8216;x&#8217; key during startup. This will force the Mac to boot from OS X, no matter which disk is specified as the startup disk. Hold the &#8216;c&#8217; key during startup to boot from a bootable CD or DVD. Hold the &#8216;n&#8217; key during startup to boot from a networked computer that [...]]]></description>
			<content:encoded><![CDATA[<div id="abm">
<div id="abc">
<div id="articlebody">

<span style="font-size: 15px; font-weight: bold;">Startup Shortcuts</span>
<ul>
    <li><strong>Hold the &#8216;x&#8217; key during startup. </strong>This will force the Mac to boot from OS X, no matter which disk is specified as the startup disk.</li>
    <li><strong>Hold the &#8216;c&#8217; key during startup </strong>to boot from a bootable CD or DVD.</li>
    <li><strong>Hold the &#8216;n&#8217; key during startup </strong>to boot from a networked computer that has a NetBoot volume.</li>
    <li><strong>Hold the &#8216;t&#8217; key during startup </strong>to boot in FireWire Target Disk Mode. This mode lets you use any Mac with a FireWire port as the source for your bootup system.</li>
    <li><strong>Hold the &#8216;d&#8217; key during startup. </strong>If the Apple Hardware Test DVD is in the optical drive, the Apple Hardware Test will begin.</li>
    <li><strong>Hold the option key during startup. </strong>The OS X startup manager will appear, allowing you to select a disk to boot from.</li>
    <li><strong>Hold the shift key during startup. </strong>This will boot your computer in Safe Mode. Safe Mode disables login items and non-essential kernel extensions from starting up.</li>
    <li><strong>Hold Command + &#8216;v&#8217; during startup </strong>The command key is the key with the cloverleaf symbol. This shortcut will boot your Mac in Verbose Mode, with descriptive text sent to the display during the startup process.</li>
    <li><strong>Hold Command + &#8216;s&#8217; during startup. </strong>This shortcut will boot your Mac in Single-User Mode, a special mode used for troubleshooting and repairing complex hard drive issues.</li>
    <li><strong>Hold down the mouse&#8217;s primary key during startup. </strong>On a two- or three-button mouse, the primary key is usually the left button. This shortcut will eject a CD or DVD from the optical drive.</li>
    <li><strong>Hold Command + Option + &#8216;p&#8217; + &#8216;r&#8217; during startup. </strong>This zaps the PRAM (Parameter RAM), an option that long-time Mac users will remember. Press and hold the key combination until you hear the second set of chimes. Zapping the PRAM returns it to its default configuration for display and video settings, time and date settings, speaker volume, and DVD region settings.</li>
</ul>
In all cases, you should use the keyboard shortcut combinations immediately after pressing the Mac&#8217;s power switch, or, if you used the Restart command, after the Mac&#8217;s power light goes out.

</div>
</div>
</div>

<p>&nbsp;</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/07/28/osx-startup-shortcuts' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/07/28/osx-startup-shortcuts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX Screenshot Shortcuts</title>
		<link>http://shan.moonbase.net/2011/07/24/osx-screenshot-shortcuts</link>
		<comments>http://shan.moonbase.net/2011/07/24/osx-screenshot-shortcuts#comments</comments>
		<pubDate>Sun, 24 Jul 2011 16:31:25 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1063</guid>
		<description><![CDATA[Shortcuts Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Shortcuts</strong></p>

<ul>
    <li>Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop</li>
    <li>Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop</li>
    <li>Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop</li>
    <li>Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard</li>
    <li>Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard</li>
    <li>Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard</li>
    <li>The following keys can be held down while selecting an area (via Command-Shift-4 or Command-Control-Shift-4):
<ul>
    <li>Space, to lock the size of the selected region and instead move it when the mouse moves</li>
    <li>Shift, to resize only one edge of the selected region</li>
    <li>Option, to resize the selected region with its center as the anchor point</li>
</ul>
</li>
</ul>

<p><strong>Formats</strong></p>

<p>Different versions of Mac OS X have different formats for screenshots.</p>

<p>The default screenshot format can be changed, by opening Terminal (located at /Applications/Utilities/Terminal) and typing in:</p>

<p style="padding-left: 30px;">defaults write com.apple.screencapture type image_format
killall SystemUIServer</p>

<p>Where image_format is one of jpg, tiff, pdf, png, bmp or pict (among others). If you omit the second line, you will need to log out and in again for the change to take effect.</p>

<p><strong>Grab and Preview</strong>
Instead of using the keyboard shortcuts above, screenshots can be taken by using the Grab application included with Mac OS X. It is located at /Applications/Utilities/Grab. Some versions of the Preview application have an option under the File menu to take a screenshot.</p>

<p><strong>From the Terminal</strong>
The screencapture command in the Terminal can also be used to capture screenshots, and is useful for scripts. Here is an example.</p>

<p style="padding-left: 30px;">screencapture -iW ~/Desktop/screen.jpg</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/07/24/osx-screenshot-shortcuts' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/07/24/osx-screenshot-shortcuts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Harvard Graduation</title>
		<link>http://shan.moonbase.net/2011/05/29/harvard-graduation</link>
		<comments>http://shan.moonbase.net/2011/05/29/harvard-graduation#comments</comments>
		<pubDate>Sun, 29 May 2011 23:12:16 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=1017</guid>
		<description><![CDATA[After years of schooling, I finally graduated from Harvard in May 2011! Hurray! You&#8217;d think after all of these years I would want to take a break and relax, but I find my brain seems to be stuck in &#8220;learning&#8221; mode, so I&#8217;ve decided to try and learn Japanese so I can be a proper [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1019" class="wp-caption alignleft" style="width: 160px"><a href="http://shan.moonbase.net/wp-content/uploads/2011/08/graduation.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2011/08/graduation-150x150.jpg" alt="Harvard Grad" title="Harvard 2011 Graduation" width="150" height="150" class="size-thumbnail wp-image-1019" /></a><p class="wp-caption-text">Harvard - May 2011</p></div>After years of schooling, I finally graduated from Harvard in May 2011! Hurray! You&#8217;d think after all of these years I would want to take a break and relax, but I find my brain seems to be stuck in &#8220;learning&#8221; mode, so I&#8217;ve decided to try and learn Japanese so I can be a proper anime otaku, lol!</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/05/29/harvard-graduation' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/05/29/harvard-graduation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011 Soaring Season Begins</title>
		<link>http://shan.moonbase.net/2011/02/26/2011-soaring-season-begins</link>
		<comments>http://shan.moonbase.net/2011/02/26/2011-soaring-season-begins#comments</comments>
		<pubDate>Sun, 27 Feb 2011 01:10:09 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Flying]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=947</guid>
		<description><![CDATA[I&#8217;ve been working on my sailplane to get in back in shape&#8230;last weekend I didn&#8217;t fly it, instead I spend 12+ hours cleaning, polishing and waxing everything except the bottoms of the wings. Today I wired up my new flight recorder and PNA. I thought about finishing waxing the wings, but I just couldn&#8217;t&#8230; with [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_946" class="wp-caption alignleft" style="width: 310px"><a href="http://shan.moonbase.net/wp-content/uploads/2011/02/flight-snapshot.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2011/02/flight-snapshot-300x291.jpg" alt="2011-02-26 Flight Path" title="2011-02-26 Flight Path" width="300" height="291" class="size-medium wp-image-946" /></a><p class="wp-caption-text">2011-02-26 Flight Path</p></div>I&#8217;ve been working on my sailplane to get in back in shape&#8230;last weekend I didn&#8217;t fly it, instead I spend 12+ hours cleaning, polishing and waxing everything except the bottoms of the wings. Today I wired up my new flight recorder and PNA. I thought about finishing waxing the wings, but I just couldn&#8217;t&#8230; with cloud streets like I saw today, I just HAD to fly. It was AWESOME! there was incredible lift, averaging about 4kts, but going up to 10+kts! I downloaded my flight from my flight recorder,so you can see there was good lift today&#8230; I made up above 5000&#8242;, and actually above the cloud bases at one point.</p>

<p><strong>Flight Track from Flght Recorder:</strong>
<p><a href="http://shan.moonbase.net/2011/02/26/2011-soaring-season-begins"><em>Click here to view the embedded video.</em></a></p>
<span id="more-947"></span>
<div id="attachment_945" class="wp-caption aligncenter" style="width: 310px"><a href="http://shan.moonbase.net/wp-content/uploads/2011/02/flight-screenshot-3d.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2011/02/flight-screenshot-3d-300x130.jpg" alt="2011-02-26 Flight 3D" title="2011-02-26 Flight 3D" width="300" height="130" class="size-medium wp-image-945" /></a><p class="wp-caption-text">2011-02-26 Flight 
3D</p></div></p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/02/26/2011-soaring-season-begins' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/02/26/2011-soaring-season-begins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://shan.moonbase.net/wp-content/uploads/2011/02/2011-02-26-flight.mov" length="17661046" type="video/quicktime" />
		</item>
		<item>
		<title>JUnit4 Annotations and Ant Workaround</title>
		<link>http://shan.moonbase.net/2011/02/10/junit4-annotations-and-ant-workaround</link>
		<comments>http://shan.moonbase.net/2011/02/10/junit4-annotations-and-ant-workaround#comments</comments>
		<pubDate>Fri, 11 Feb 2011 02:55:18 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=933</guid>
		<description><![CDATA[I usually use Maven for Java based projects, so my ant skills are a little rusty. Recently It was whipping up some JUnit negative test cases for someone else&#8217;s project that was a mess of ant build files (ugh). I decided to use some of the nifty annotation features found in JUnit 4.8.2 ( for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://shan.moonbase.net/wp-content/uploads/2011/02/antrtrans1.gif"><img src="http://shan.moonbase.net/wp-content/uploads/2011/02/antrtrans1.gif" alt="" title="Ant Logo Transparent" width="190" height="120" class="alignleft size-full wp-image-942" /></a>I usually use Maven for Java based projects, so my ant skills are a little rusty. Recently It was whipping up some JUnit negative test cases for someone else&#8217;s project that was a mess of ant build files (ugh). I decided to use some of the nifty annotation features found in JUnit 4.8.2 ( for rules and expected exception behavior). Annotations are great for addressing defects in the Java language, and help encapsulation by associating behavior directly with a class. But I digress&#8230; Anyway All the tests to check exceptions were thrown under negative test conditions looked good inside of Eclipse, but when I ran the ant test script from the command line, none of tests were being run encfprcomg the annotations, even though the JUnit jar was in the ant classpath!  A little research showed that ant&#8217;s JUnit test runner doesn&#8217;t support annotations. The solution was to modify the suite() method of the AllTests class to wrap the classes under test in a JUnit4TestAdapter, i.e. something like this:</p>

<p><a href="http://shan.moonbase.net/wp-content/uploads/2011/02/junit-logo-trans.gif"><img src="http://shan.moonbase.net/wp-content/uploads/2011/02/junit-logo-trans.gif" alt="" title="junit-logo-trans" width="134" height="71" class="alignright size-full wp-image-940" /></a><pre>
@RunWith(JUnit4.class)
public class AllTests extends TestSuite {</p>

<pre><code>public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(TestSomething.class);
}
</code></pre>

<p>}
</pre></p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/02/10/junit4-annotations-and-ant-workaround' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/02/10/junit4-annotations-and-ant-workaround/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Encoding, UTF-8 / UTF-16 Confusion</title>
		<link>http://shan.moonbase.net/2011/02/03/xml-encoding</link>
		<comments>http://shan.moonbase.net/2011/02/03/xml-encoding#comments</comments>
		<pubDate>Thu, 03 Feb 2011 20:30:49 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=918</guid>
		<description><![CDATA[Here&#8217;s a frustrating little problem I found when a service I deal with (we&#8217;ll call it SystemA for &#8220;Awesome&#8221;) suddenly changed character encoding&#8230; My app was suddenly getting parse exceptions for XML messages after an upgrade to SystemA was deployed to a test environment. A peak at my logs showed the xml response looked funky, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a frustrating little problem I found when a service I deal with (we&#8217;ll call it SystemA for &#8220;Awesome&#8221;) suddenly changed character encoding&#8230;
My app was suddenly getting parse exceptions for XML messages after an upgrade to SystemA was deployed to a test environment. A peak at my logs showed the xml response looked funky, with extra spaces all throught it&#8230; no wonder my XML API went blooey:</p>

<p>&lt;  ?  x  m  l    v  e  r  s   i  o  n  =  &#8221;  1  .  0  &#8221;            e  n  c  o  d  i  n  g   =  &#8221;  U  T  F  &#8211;  8  &#8221;  ?  ></p>

<p>I blinked a little, then tried a copy paste from the log file to put into a bug note and got this little gem from textpad:</p>

<div id="attachment_920" class="wp-caption alignleft" style="width: 469px"><a href="http://shan.moonbase.net/wp-content/uploads/2011/02/textpad.jpg"><img src="http://shan.moonbase.net/wp-content/uploads/2011/02/textpad.jpg" alt="Cannot cut, copy, or drag and dtop text containing null (code = 0) characters." title="textpad" width="459" height="160" class="size-full wp-image-920" /></a><p class="wp-caption-text">Cannot cut, copy, or drag and dtop text containing null (code = 0) characters.</p></div>

<p>Sweet!</p>

<p>I opened the file up in a Hex Editor, and low and behold there were extra nulls chars all through it. Even though the xml header specified UTF-8, it looked like it was actually encoded in UTF-16.</p>

<p>A quick hack to my code to override encoding to use UTF-16, and the xml was now readable&#8230;. looks like SystemA swapped encoding without informing anyone or updating their code to output the correct incoding in the file encoding attribute&#8230;  makes me wonder if they String all their XML together by hand with String concatenations instead of using an XML library  (shudder). Just goes to show, just &#8217;cause the encoding attribute says one thing, it might actually be something else. Never presume that inside the black box that is someone else&#8217;s application, good coding practices are followed.</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/02/03/xml-encoding' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/02/03/xml-encoding/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flying Home</title>
		<link>http://shan.moonbase.net/2011/02/01/flying-home-2</link>
		<comments>http://shan.moonbase.net/2011/02/01/flying-home-2#comments</comments>
		<pubDate>Tue, 01 Feb 2011 06:31:37 +0000</pubDate>
		<dc:creator>shanmoon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[joy]]></category>
		<category><![CDATA[soaring]]></category>

		<guid isPermaLink="false">http://shan.moonbase.net/?p=911</guid>
		<description><![CDATA[I flew my plane for the first time since my catastrophic hangliding accident 9 months ago&#8230; here&#8217;s a 3 minute video showing takeoff, some highlights of the flight, and my landing.]]></description>
			<content:encoded><![CDATA[<p>I flew my plane for the first time since my catastrophic hangliding accident 9 months ago&#8230; here&#8217;s a 3 minute video showing takeoff, some highlights of the flight, and my landing. 
<object width="400" height="224" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://www.facebook.com/v/10150169481194942" /><embed src="http://www.facebook.com/v/10150169481194942" type="application/x-shockwave-flash" allowfullscreen="true" width="400" height="224"></embed></object></p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://shan.moonbase.net/2011/02/01/flying-home-2' layout='button_count' show_faces='true' width='200' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://shan.moonbase.net/2011/02/01/flying-home-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

