<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205</link>
    <title>MATLAB Central Newsreader - folder and file names with foreign characters</title>
    <description>Feed for thread: folder and file names with foreign characters</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 05 Feb 2008 18:15:05 -0500</pubDate>
      <title>folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413103</link>
      <author>Fangjun Jiang</author>
      <description>I have many data files in folders and sub-folders. All &lt;br&gt;
these folder and file names contain foreign characters &lt;br&gt;
(Chinese). They appear normal in Windows XP explorer. I &lt;br&gt;
can copy and move files. But Matlab won't recognize these &lt;br&gt;
folders and files. In Matlab command window, when I try to &lt;br&gt;
change the current directory using the &quot;Browse for folder&quot; &lt;br&gt;
button, I can choose the folder with the Chinese &lt;br&gt;
characters (it displays the correct Chinese character), &lt;br&gt;
but the command window shows:&lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; cd&lt;br&gt;
Cannot CD to C:\stdd\???? (Name is nonexistent or not a &lt;br&gt;
directory).&lt;br&gt;
&lt;br&gt;
When I double click a .txt file with Chinese character &lt;br&gt;
file name, it pops up an error dialog indicating &quot;file not &lt;br&gt;
found&quot;. However, I can open it using notepad and it looks &lt;br&gt;
fine. I saved the text file in all three types of unicode &lt;br&gt;
but medit can't open it.&lt;br&gt;
&lt;br&gt;
So the question is, can Matlab string contain foreign &lt;br&gt;
characters? My need is to use a string to represent these &lt;br&gt;
fold and file names and then do copy, move and stuff.&lt;br&gt;
&lt;br&gt;
I am using R2007b in XP. Thanks!</description>
    </item>
    <item>
      <pubDate>Tue, 05 Feb 2008 18:28:47 -0500</pubDate>
      <title>Re: folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413107</link>
      <author>dpb</author>
      <description>Fangjun Jiang wrote:&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
&amp;gt; So the question is, can Matlab string contain foreign &lt;br&gt;
&amp;gt; characters? My need is to use a string to represent these &lt;br&gt;
&amp;gt; fold and file names and then do copy, move and stuff.&lt;br&gt;
&lt;br&gt;
Sounds like a TMW support query, but a workaround _might_ be to get the &lt;br&gt;
short filename for the files via the&lt;br&gt;
&lt;br&gt;
DIR /X&lt;br&gt;
&lt;br&gt;
switch and try using that instead of the full &quot;long&quot; filename.&lt;br&gt;
&lt;br&gt;
I don't know whether XP would create a base font name or whether it &lt;br&gt;
might still have other characters in the filename or not, but it's one &lt;br&gt;
thing might try...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Tue, 05 Feb 2008 19:26:02 -0500</pubDate>
      <title>Re: folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413116</link>
      <author>Fangjun Jiang</author>
      <description>Thank you for the tip!&lt;br&gt;
&lt;br&gt;
I tried one example in DOS command window. The file can be &lt;br&gt;
copied and moved and the file name keeps the same (still &lt;br&gt;
shows the correct Chinese character). This is good. What I &lt;br&gt;
need next is to read the file name and extract a serial &lt;br&gt;
number from it, combine the serial number with some other &lt;br&gt;
Chinese characters and write it to a text file. It would &lt;br&gt;
be perfect if Matlab could treat the file name as any &lt;br&gt;
ordinary string. But it couldn't probably due to the fact &lt;br&gt;
that the file name contains Chinese characters. I looked &lt;br&gt;
for clues in unicode2native, native2unicode but couldn't &lt;br&gt;
figure it out. Is there any solution? Thanks!&lt;br&gt;
&lt;br&gt;
dpb &amp;lt;none@non.net&amp;gt; wrote in message &amp;lt;foaa57&lt;br&gt;
$s4o$1@aioe.org&amp;gt;...&lt;br&gt;
&amp;gt; Fangjun Jiang wrote:&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; So the question is, can Matlab string contain foreign &lt;br&gt;
&amp;gt; &amp;gt; characters? My need is to use a string to represent &lt;br&gt;
these &lt;br&gt;
&amp;gt; &amp;gt; fold and file names and then do copy, move and stuff.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sounds like a TMW support query, but a workaround &lt;br&gt;
_might_ be to get the &lt;br&gt;
&amp;gt; short filename for the files via the&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DIR /X&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; switch and try using that instead of the full &quot;long&quot; &lt;br&gt;
filename.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't know whether XP would create a base font name or &lt;br&gt;
whether it &lt;br&gt;
&amp;gt; might still have other characters in the filename or &lt;br&gt;
not, but it's one &lt;br&gt;
&amp;gt; thing might try...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --</description>
    </item>
    <item>
      <pubDate>Tue, 05 Feb 2008 19:57:39 -0500</pubDate>
      <title>Re: folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413120</link>
      <author>dpb</author>
      <description>Fangjun Jiang wrote:&lt;br&gt;
&amp;gt; Thank you for the tip!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried one example in DOS command window. The file can be &lt;br&gt;
&amp;gt; copied and moved and the file name keeps the same (still &lt;br&gt;
&amp;gt; shows the correct Chinese character). This is good. What I &lt;br&gt;
&amp;gt; need next is to read the file name and extract a serial &lt;br&gt;
&amp;gt; number from it, combine the serial number with some other &lt;br&gt;
&amp;gt; Chinese characters and write it to a text file. It would &lt;br&gt;
&amp;gt; be perfect if Matlab could treat the file name as any &lt;br&gt;
&amp;gt; ordinary string. But it couldn't probably due to the fact &lt;br&gt;
&amp;gt; that the file name contains Chinese characters. I looked &lt;br&gt;
&amp;gt; for clues in unicode2native, native2unicode but couldn't &lt;br&gt;
&amp;gt; figure it out. Is there any solution? Thanks!&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
Don't know--I think this needs to go to TMW support directly.&lt;br&gt;
&lt;br&gt;
A TMW person may see the query here, but this is unofficial (at best) &lt;br&gt;
support forum, despite the interface available at the TMW site.&lt;br&gt;
&lt;br&gt;
I don't have any way to test the problem (nor even a very recent copy of &lt;br&gt;
ML), sorry...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Thu, 07 Feb 2008 14:06:03 -0500</pubDate>
      <title>Re: folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413535</link>
      <author>Fangjun Jiang</author>
      <description>I got tech support from TMW and it works now.&lt;br&gt;
&lt;br&gt;
I am writing in reference to your Service Request # 1-&lt;br&gt;
5QA9X3 regarding ' folder and file names with foreign &lt;br&gt;
characters'. Could you please ensure that both the user &lt;br&gt;
and the system Locale Settings in Windows are set to &lt;br&gt;
Chinese? MATLAB requires that they are the same.&lt;br&gt;
&lt;br&gt;
The user settings can be found by going to:&lt;br&gt;
&lt;br&gt;
Start-&amp;gt;Control Panel-&amp;gt;Regional and Language Options-&lt;br&gt;
&amp;gt;Regional Options&lt;br&gt;
&lt;br&gt;
Set the dropdown box appropriately. The system settings &lt;br&gt;
are in the &quot;Advanced&quot; tab of the same window.&lt;br&gt;
&lt;br&gt;
You will probably have to restart your computer for any &lt;br&gt;
changes to take effect. Please let me know if this works &lt;br&gt;
or not.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
dpb &amp;lt;none@non.net&amp;gt; wrote in message &amp;lt;foafbp$de8&lt;br&gt;
$1@aioe.org&amp;gt;...&lt;br&gt;
&amp;gt; Fangjun Jiang wrote:&lt;br&gt;
&amp;gt; &amp;gt; Thank you for the tip!&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I tried one example in DOS command window. The file &lt;br&gt;
can be &lt;br&gt;
&amp;gt; &amp;gt; copied and moved and the file name keeps the same &lt;br&gt;
(still &lt;br&gt;
&amp;gt; &amp;gt; shows the correct Chinese character). This is good. &lt;br&gt;
What I &lt;br&gt;
&amp;gt; &amp;gt; need next is to read the file name and extract a &lt;br&gt;
serial &lt;br&gt;
&amp;gt; &amp;gt; number from it, combine the serial number with some &lt;br&gt;
other &lt;br&gt;
&amp;gt; &amp;gt; Chinese characters and write it to a text file. It &lt;br&gt;
would &lt;br&gt;
&amp;gt; &amp;gt; be perfect if Matlab could treat the file name as any &lt;br&gt;
&amp;gt; &amp;gt; ordinary string. But it couldn't probably due to the &lt;br&gt;
fact &lt;br&gt;
&amp;gt; &amp;gt; that the file name contains Chinese characters. I &lt;br&gt;
looked &lt;br&gt;
&amp;gt; &amp;gt; for clues in unicode2native, native2unicode but &lt;br&gt;
couldn't &lt;br&gt;
&amp;gt; &amp;gt; figure it out. Is there any solution? Thanks!&lt;br&gt;
&amp;gt; ...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Don't know--I think this needs to go to TMW support &lt;br&gt;
directly.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A TMW person may see the query here, but this is &lt;br&gt;
unofficial (at best) &lt;br&gt;
&amp;gt; support forum, despite the interface available at the &lt;br&gt;
TMW site.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I don't have any way to test the problem (nor even a &lt;br&gt;
very recent copy of &lt;br&gt;
&amp;gt; ML), sorry...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; --</description>
    </item>
    <item>
      <pubDate>Thu, 07 Feb 2008 15:47:02 -0500</pubDate>
      <title>Re: folder and file names with foreign characters</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163205#413568</link>
      <author>dpb</author>
      <description>Fangjun Jiang wrote:&lt;br&gt;
&amp;gt; I got tech support from TMW and it works now.&lt;br&gt;
&amp;gt; &lt;br&gt;
...&lt;br&gt;
&amp;gt; ...ensure that both the user and the system Locale Settings in Windows ...&lt;br&gt;
&lt;br&gt;
That's why I recommended that route... :)&lt;br&gt;
&lt;br&gt;
I've fiddled w/ Winders locale settings and fonts, etc., that had &lt;br&gt;
suspicion the problems lay there, but not sufficient ottomh knowledge as &lt;br&gt;
to tell you what/where to look for sure...&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
  </channel>
</rss>

