<?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>Diznix Blog &#187; foreign characters</title>
	<atom:link href="http://diznix.com/tag/foreign-characters/feed/" rel="self" type="application/rss+xml" />
	<link>http://diznix.com</link>
	<description>News from Nowhere</description>
	<lastBuildDate>Sun, 05 Feb 2012 05:58: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>
		<item>
		<title>Win NFS Fixed (at a cost)</title>
		<link>http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/</link>
		<comments>http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 23:26:28 +0000</pubDate>
		<dc:creator>dizwell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[character set]]></category>
		<category><![CDATA[extended characters]]></category>
		<category><![CDATA[foreign characters]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[ProNFS]]></category>
		<category><![CDATA[UTF8]]></category>

		<guid isPermaLink="false">http://diznix.com/?p=1657</guid>
		<description><![CDATA[Further to my last post, in which it was discovered that the NFS client tool included in some editions of Windows 7 can&#8217;t cope with accented characters (or anything not in the standard American view of the alphabet, really)&#8230; The &#8230; <a href="http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Further to <a href="http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/">my last post</a>, in which it was discovered that the NFS client tool included in some editions of Windows 7 can&#8217;t cope with accented characters (or anything not in the standard American view of the alphabet, really)&#8230;</p>
<p>The good news is that I have a fix. The bad news is that it comes in the form of a commercial NFS client, called <a href="http://www.labtam-inc.com/download/win32/pnfslabp.exe">ProNFS</a>, which costs US$40. That&#8217;s at least $15 more than I feel entirely comfortable paying, but there&#8217;s a 30-day trialware edition that at least you can test stuff out with before you part with your hard-earned moolah.</p>
<p>Crucially, in the client settings tool that is provided as part of the ProNFS software stack, there&#8217;s this little dialog box:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs09.png"><img class="alignnone size-full wp-image-1658" title="nfs09" src="http://diznix.com/wp-content/uploads/2011/12/nfs09.png" alt="" width="359" height="460" /></a></p>
<p>Spot the reference to using UTF8 file names! Woot!</p>
<p>Once you then use the &#8216;map drive&#8217; tool to find your NFS shares and mount them as a standard windows drive letter affair, everything works as advertised on the tin-lid:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs11.png"><img class="alignnone size-full wp-image-1659" title="nfs11" src="http://diznix.com/wp-content/uploads/2011/12/nfs11.png" alt="" width="584" height="305" /></a></p>
<p>Spot all those European names displaying correctly, replete with accents, umlauts and cedillas! Problem solved, I think.</p>
<p>I do have a few &#8220;issues&#8221; with this approach to solving the problem, though. I suppose the first one is simply this: &#8220;if they can do it, why can&#8217;t you, Microsoft?!&#8221;. The second is that the installer for this program looks like it was written in 1994 and hasn&#8217;t been updated since! There are lots of little touches on the company&#8217;s website, for example, that make me nervous -constant references to the software being compatible with Vista, for example, with never a mention of Windows 7. If you check out <a href="http://www.labtam-inc.com/index.php?act=products&amp;t=screen_shot&amp;pid=2">their promotional screenshot</a>, too, it will seem as if the software hasn&#8217;t been updated since 2003! They&#8217;re shooting themselves in the foot there, because if you actually run the NFS server component today, it will report version 1.6 with a compile date of June 23rd 2011, which is much more reassuring! Finally, there&#8217;s the not-so-minor matter of the Blue Screen of Death I got when I removed the evaluation version and performed post-removal reboot. I haven&#8217;t seen one of those for years, so getting one as the software is removed didn&#8217;t fill me with warm glows and kindly feelings!</p>
<p>In the end, though, such things are probably not major issues. I should say in fairness that once the software was installed and running, it behaved itself perfectly -and I can live with slightly out-of-date documentation and promotional wares so long as the software behaves itself. Yes, I could wish it were a tad cheaper, but even at US$40, if it means I don&#8217;t have to configure Samba, it&#8217;s probably just about worth it! Colour me happy, ish.</p>
<div class="simple_likebuttons_container_small">
      <div class="simple_likebuttons_googleplus">
        <g:plusone size="medium" count="false" href="http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/"></g:plusone>
      </div>
    
      <div class="simple_likebuttons_twitter simple_likebuttons_twitter_s">
        <a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-url="http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/" data-lang="en">Tweet</a>
      </div>
    
      <div class="simple_likebuttons_facebook">
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) {return;}
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, "script", "facebook-jssdk"));</script>
        <div class="fb-like" data-href="http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/" data-send="false" data-layout="button_count" data-show-faces="false" data-width="90"></div>
      </div>
    </div>]]></content:encoded>
			<wfw:commentRss>http://diznix.com/2011/12/29/win-nfs-fixed-at-a-cost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS, Windows and Foreign Characters</title>
		<link>http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/</link>
		<comments>http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 16:43:59 +0000</pubDate>
		<dc:creator>dizwell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[character set]]></category>
		<category><![CDATA[extended characters]]></category>
		<category><![CDATA[foreign characters]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[UTF8]]></category>

		<guid isPermaLink="false">http://diznix.com/?p=1645</guid>
		<description><![CDATA[The house now only has one Windows PC left (running 64-bit Windows 7). Everything else is running Linux -though one netbook still retains dual boot capability, just in case. (In case of what exactly I&#8217;m not quite sure, but it always &#8230; <a href="http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The house now only has one Windows PC left (running 64-bit Windows 7). Everything else is running Linux -though one netbook still retains dual boot capability, just in case. (In case of <em>what</em> exactly I&#8217;m not quite sure, but it always pays to be prepared, I guess). The question now arises, then: how best to get that one Windows PC accessing files from the file server (which is busy running Scientific Linux 6.1)?</p>
<p>The obvious answer is &#8216;Samba&#8217;: a quick fiddle on the file server to install the requisite Samba server packages, a modest amount of editing smb.conf and (usually) all is set and ready to run.</p>
<p>This time, however, I thought I&#8217;d be a bit more adventurous. Every other Server, PC, laptop or netbook is running Linux, so why impose the overhead of Samba if it&#8217;s not needed for most of the machines on my network? Why not get Linux&#8217;s &#8220;native&#8221; file sharing system (NFS, or Network File System) running instead and get the Windows PC hooking into that?</p>
<p>Well, the NFS bit is indeed incredibly easy to set up. It&#8217;s already installed on the server: all I had to do was make sure the firewall allowed traffic through (on ports 111 <em>and</em> 2049), configure an export file and start the relevant service. All done in about 5 minutes, to be honest -which is a lot faster than Samba usually is for me! The export file (<strong>/etc/exports</strong>) couldn&#8217;t be much simpler, either, for it contains just one line:</p>
<pre>/safedata 192.168.0.0/24(rw,sync)</pre>
<p>The <em>safedata</em> directory is the mount point for my RAID 5 array, so has all the important data on it. I&#8217;m just saying here that anyone on my home network is allowed to get read-write access to it (in principle, anyway&#8230; normal file permissions still apply, so unless I&#8217;ve chmodded everything 777, not <em>everything</em> will be writeable).</p>
<p>The Linux clients are a doddle to configure, too: it&#8217;s simply a matter of typing this sort of thing (as root):</p>
<pre>mount 192.168.0.100:/safedata /nfsmounts</pre>
<p>That just says &#8216;find the &#8220;safedata&#8221; export on the file server and mount it at the /nfsmounts mount point&#8217;. And, just as I had hoped, I found large files could be copied across to the server from my desktop at a rate of about 48MB/sec. That&#8217;s 384 mega<em>bits</em> per second, which isn&#8217;t bad for my rather humdrum gigabit Ethernet link -and a lot faster than the consistent 25MB/sec I used to get on exactly the same hardware when using Samba to do Linux-to-Linux transfers.</p>
<p>So NFS it is, then!</p>
<p>Not so fast! There&#8217;s the not-so-minor matter of configuring The Other Half&#8217;s Windows PC to partake in this feast of NFS-ness. As I mentioned, that&#8217;s running Windows 7&#8230; and it&#8217;s the Ultimate edition, which means an NFS client is readily available. All you have to do is go to <em>Start &gt; Control Panel &gt; Programs</em> and then select the <strong>Turn Windows features on or off</strong> option:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs02.png"><img class="alignnone size-full wp-image-1646" title="nfs02" src="http://diznix.com/wp-content/uploads/2011/12/nfs02.png" alt="" width="545" height="553" /></a></p>
<p>You simply find the <strong>Services for NFS</strong> item, expand it and select the two sub-options for activation. Once you&#8217;ve done that, you can then issue &#8216;mount&#8217; commands on Windows that resemble their Linux cousins very closely:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs03.png"><img class="alignnone size-full wp-image-1647" title="nfs03" src="http://diznix.com/wp-content/uploads/2011/12/nfs03.png" alt="" width="584" height="239" /></a></p>
<p>The basic format of the command is simply <em>mount server:/share/name drive_letter: </em>&#8230;and in my case, it means my Music folder stored on the server&#8217;s RAID array is now accessible from the Windows PC by navigating to the M: drive in Explorer:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs05.png"><img class="alignnone size-full wp-image-1648" title="nfs05" src="http://diznix.com/wp-content/uploads/2011/12/nfs05.png" alt="" width="574" height="651" /></a></p>
<p>And this is the point where the good news abruptly ends. Sure, getting the NFS export seen and mounted by the Windows PC is a piece of cake&#8230; but as any fule kno, André Mathieu&#8217;s name is spelled with an &#8216;e-acute&#8217; at the end of his first name, not a capital-A-plus-Copyright-symbol as Windows Explorer seems to think is appropriate. Arnold Schönberg will also be missing his O-umlaut and wouldn&#8217;t be impressed with his newly-acquired A-with-tilde-plus-paragraph-mark.</p>
<p>Of course, what we have here is ye olde and ancient trouble with extended Western European &#8216;foreign&#8217; characters. It&#8217;s bugged me for years when doing Samba mounts (but is easily fixed there by specifying a utf-8 mount option when issuing the mount command). Now it&#8217;s back with a vengeance&#8230; and there&#8217;s nothing I can do (apparently) to fix it!</p>
<p>Here&#8217;s the real problem, from the Windows perspective:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs06.png"><img class="alignnone size-full wp-image-1649" title="nfs06" src="http://diznix.com/wp-content/uploads/2011/12/nfs06.png" alt="" width="584" height="236" /></a></p>
<p>The mount command on its own lists network drives which have been mounted and the options/attributes that apply to those mounts. The killer line here is <strong>lang=ANSI</strong>, indicating that Windows has mounted the network drive assuming that it will find only ANSI characters at the other end. When it then actually finds UTF-8 characters instead, it gets itself very confused, as we&#8217;ve seen.</p>
<p>Knowing this, it&#8217;s easy to speculate that there must be a way of specifying something like <strong>lang=utf8</strong> when performing the original mount command and that this would fix the problem:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs07.png"><img class="alignnone size-full wp-image-1650" title="nfs07" src="http://diznix.com/wp-content/uploads/2011/12/nfs07.png" alt="" width="568" height="263" /></a></p>
<p>That&#8217;s me first unmounting the M: drive I&#8217;d created before and then attempting to re-mount it but with a utf8 language specified instead of the default ansi one. As you can see, however, &#8220;utf8&#8243; is not an option that&#8217;s actually available for this parameter. You can certainly choose a variety of Chinese, Korean and Japanese character sets -and, of course, &#8220;ansi&#8221; is valid, but not &#8220;utf-8&#8243; or anything like it.</p>
<p>As far as I could tell from reading the documentation that comes with the Windows 7 NFS client (go to <em>Control Panel &gt; System and Security &gt; Administrative Tools</em> then open the <strong>Services for Network File System (NFS)</strong> program and hit [F1]), there are no other mount options that can be specified which would have anything to do with getting the character set right. So, as best as I can tell, there is no fix for this problem&#8230; which is truly dumb!</p>
<p>Just to emphasize how silly this is, here&#8217;s the exact same Windows PC browsing through the exact same folders on the exact same server &#8230;only this time, using Samba:</p>
<p><a href="http://diznix.com/wp-content/uploads/2011/12/nfs08.png"><img class="alignnone size-full wp-image-1652" title="nfs08" src="http://diznix.com/wp-content/uploads/2011/12/nfs08.png" alt="" width="584" height="585" /></a></p>
<p>The two Andrés have their acute accents, and Arnold gets his umlaut back&#8230; no problems at all.</p>
<p>For me, unless someone else points me in the direction of a fix, this simply means it&#8217;s back to Samba and boo-hiss to NFS, which is a shame as I would much prefer things the other way round.</p>
<p>There are, apparently, commercial NFS clients for Windows. I may have to try to evaluate one of those to see if the character set issues are surmountable, but I am not holding my breath. In the meantime, the freebie stuff from Microsoft on this score is functionally useless to me <img src='http://diznix.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<div class="simple_likebuttons_container_small">
      <div class="simple_likebuttons_googleplus">
        <g:plusone size="medium" count="false" href="http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/"></g:plusone>
      </div>
    
      <div class="simple_likebuttons_twitter simple_likebuttons_twitter_s">
        <a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-url="http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/" data-lang="en">Tweet</a>
      </div>
    
      <div class="simple_likebuttons_facebook">
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) {return;}
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, "script", "facebook-jssdk"));</script>
        <div class="fb-like" data-href="http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/" data-send="false" data-layout="button_count" data-show-faces="false" data-width="90"></div>
      </div>
    </div>]]></content:encoded>
			<wfw:commentRss>http://diznix.com/2011/12/29/nfs-windows-and-foreign-characters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: diznix.com @ 2012-02-05 23:52:56 -->
