<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Working with Low Level File I/O and Encodings</title>
	<atom:link href="http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/</link>
	<description>Loren Shure works on design of the MATLAB language at MathWorks. She writes here about once a week on MATLAB programming and related topics.</description>
	<lastBuildDate>Mon, 13 Feb 2012 13:24:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Yasuhiro Hara</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-32047</link>
		<dc:creator>Yasuhiro Hara</dc:creator>
		<pubDate>Thu, 17 Feb 2011 12:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-32047</guid>
		<description>Hi Leilane, 

The NoDisplay mode currently does not properly handle non 7-Bit ASCII characters. The NoDisplay mode may display non 7-Bit ASCII characters, but it cannot be accept non 7-Bit ASCII characters. 

As for encoding setting, MATLAB automatically gets the user default encoding from the user default locale setting. If you use MATLAB on a Linux system, you can specify it using locale environment variable, such as LANG. 

Regards,
/yasu</description>
		<content:encoded><![CDATA[<p>Hi Leilane, </p>
<p>The NoDisplay mode currently does not properly handle non 7-Bit ASCII characters. The NoDisplay mode may display non 7-Bit ASCII characters, but it cannot be accept non 7-Bit ASCII characters. </p>
<p>As for encoding setting, MATLAB automatically gets the user default encoding from the user default locale setting. If you use MATLAB on a Linux system, you can specify it using locale environment variable, such as LANG. </p>
<p>Regards,<br />
/yasu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leilane</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-32039</link>
		<dc:creator>Leilane</dc:creator>
		<pubDate>Wed, 16 Feb 2011 15:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-32039</guid>
		<description>Hi Loren, 

On Matlab graphics window I can do that texts of my plots have accent. However, I run Matlab on bash (matlab-NoDisplay) and despite I changed the locale of my system for pt_BR.ISO-8859-1 (user@pc$Vitória), when I run matlab on bash I have (&gt;&gt; Vitria).

Where I tell for Matlab that it must have this encoding (ISO-8859-1)? 

Thanks (sorry for english),

Leilane</description>
		<content:encoded><![CDATA[<p>Hi Loren, </p>
<p>On Matlab graphics window I can do that texts of my plots have accent. However, I run Matlab on bash (matlab-NoDisplay) and despite I changed the locale of my system for pt_BR.ISO-8859-1 (user@pc$Vitória), when I run matlab on bash I have (&gt;&gt; Vitria).</p>
<p>Where I tell for Matlab that it must have this encoding (ISO-8859-1)? </p>
<p>Thanks (sorry for english),</p>
<p>Leilane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-31849</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Tue, 16 Nov 2010 13:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-31849</guid>
		<description>Robbe-

Please contact technical support, link on the right of the blog, with full code details, error message, and sample data.

--loren</description>
		<content:encoded><![CDATA[<p>Robbe-</p>
<p>Please contact technical support, link on the right of the blog, with full code details, error message, and sample data.</p>
<p>&#8211;loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robbe</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-31845</link>
		<dc:creator>Robbe</dc:creator>
		<pubDate>Mon, 15 Nov 2010 15:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-31845</guid>
		<description>Hi Loren,

Can you help me out please, trying to read a very big data file (250 mb), error out of memory appears - any ideas? Can&#039;t figure a way to read sample by sample, because fread can&#039;t read only the 2 value. It reads 1 and 2 (fread(fid,2,&#039;unit16&#039;)). 

Robbe</description>
		<content:encoded><![CDATA[<p>Hi Loren,</p>
<p>Can you help me out please, trying to read a very big data file (250 mb), error out of memory appears &#8211; any ideas? Can&#8217;t figure a way to read sample by sample, because fread can&#8217;t read only the 2 value. It reads 1 and 2 (fread(fid,2,&#8217;unit16&#8242;)). </p>
<p>Robbe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bo Pedersen</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-31379</link>
		<dc:creator>Bo Pedersen</dc:creator>
		<pubDate>Mon, 24 May 2010 14:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-31379</guid>
		<description>I concur with Terrance... I wasted a lot of time in Matlab trying to fix encoding problems - just to realize that they are not fixable..</description>
		<content:encoded><![CDATA[<p>I concur with Terrance&#8230; I wasted a lot of time in Matlab trying to fix encoding problems &#8211; just to realize that they are not fixable..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrance Nearey</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-30878</link>
		<dc:creator>Terrance Nearey</dc:creator>
		<pubDate>Sun, 06 Dec 2009 01:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-30878</guid>
		<description>It&#039;s pretty astounding to me that these problems haven&#039;t been substantially solved after 3 of years of this blog. Every  Web browser in the world handlesthis kind of thing pretty seamlessly by now.. as witnessed by some examples included in this blog.
I realize that it gets pretty hairy out there wrt to alternate standards and even security issues. But aren&#039;t there some minimal de facto standards that could be implemented?  Say you could try to implement in a &quot;coming real soon&quot; matlab any character codings that will show up properly in this blog today?
Cheers</description>
		<content:encoded><![CDATA[<p>It&#8217;s pretty astounding to me that these problems haven&#8217;t been substantially solved after 3 of years of this blog. Every  Web browser in the world handlesthis kind of thing pretty seamlessly by now.. as witnessed by some examples included in this blog.<br />
I realize that it gets pretty hairy out there wrt to alternate standards and even security issues. But aren&#8217;t there some minimal de facto standards that could be implemented?  Say you could try to implement in a &#8220;coming real soon&#8221; matlab any character codings that will show up properly in this blog today?<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-30742</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Sat, 07 Nov 2009 22:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-30742</guid>
		<description>Bob-

You don&#039;t say what happens when you run your code.  Can you please explain more.  It looks like you are using one locale at a time in your code.

Loren</description>
		<content:encoded><![CDATA[<p>Bob-</p>
<p>You don&#8217;t say what happens when you run your code.  Can you please explain more.  It looks like you are using one locale at a time in your code.</p>
<p>Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-30737</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 06 Nov 2009 22:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-30737</guid>
		<description>Hi Lori,

Im trying to process Unicode text files from more than one different locales than the standard latin one. 
Im able to verify that it works with the one, or with the other, but never with more than one at a time.
Do you think there is a way overcome this ?
&lt;pre&gt;
 % 
 fid1 = fopen(unicodeFileLocale_1, &#039;r&#039;, &#039;n&#039;, &#039;UTF-8&#039;);
 str1 = fread(fid1, inf, &#039;*char&#039;)&#039;;
 fclose(fid1);
 % 
 fid2 = fopen(unicodeFileLocale_2, &#039;r&#039;, &#039;n&#039;, &#039;UTF-8&#039;);
 str2 = fread(fid2, inf, &#039;*char&#039;)&#039;;
 fclose(fid2);
&lt;/pre&gt;

Best regards,</description>
		<content:encoded><![CDATA[<p>Hi Lori,</p>
<p>Im trying to process Unicode text files from more than one different locales than the standard latin one.<br />
Im able to verify that it works with the one, or with the other, but never with more than one at a time.<br />
Do you think there is a way overcome this ?</p>
<pre>
 %
 fid1 = fopen(unicodeFileLocale_1, 'r', 'n', 'UTF-8');
 str1 = fread(fid1, inf, '*char')';
 fclose(fid1);
 %
 fid2 = fopen(unicodeFileLocale_2, 'r', 'n', 'UTF-8');
 str2 = fread(fid2, inf, '*char')';
 fclose(fid2);
</pre>
<p>Best regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-30714</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-30714</guid>
		<description>Dirk-

It depends on too many things to answer unequivocally.  Please contact technical support with as much detail as you can provide, e.g., locale, default encoding, etc.  See link on the right to get support.

--Loren</description>
		<content:encoded><![CDATA[<p>Dirk-</p>
<p>It depends on too many things to answer unequivocally.  Please contact technical support with as much detail as you can provide, e.g., locale, default encoding, etc.  See link on the right to get support.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dirk</title>
		<link>http://blogs.mathworks.com/loren/2006/09/20/working-with-low-level-file-io-and-encodings/#comment-30713</link>
		<dc:creator>Dirk</dc:creator>
		<pubDate>Fri, 30 Oct 2009 10:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/?p=55#comment-30713</guid>
		<description>Hi All

Is there a way to configure MATLAB figures to display unicode characters correctly when plotted using the &#039;text&#039; function. I am trying to display the latin small letter schwa (U+0259). I can display other things like the euro and pound correctly and the schwa character is displayed correctly in my workspace, but when I print it to the command window or a figure I get a default character. I need to plot it on a figure.</description>
		<content:encoded><![CDATA[<p>Hi All</p>
<p>Is there a way to configure MATLAB figures to display unicode characters correctly when plotted using the &#8216;text&#8217; function. I am trying to display the latin small letter schwa (U+0259). I can display other things like the euro and pound correctly and the schwa character is displayed correctly in my workspace, but when I print it to the command window or a figure I get a default character. I need to plot it on a figure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

