Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: folder and file names with foreign characters
Date: Tue, 5 Feb 2008 19:26:02 +0000 (UTC)
Organization: Ford Motor Co
Lines: 41
Message-ID: <foad8a$e6d$1@fred.mathworks.com>
References: <foa939$6th$1@fred.mathworks.com> <foaa57$s4o$1@aioe.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202239562 14541 172.30.248.38 (5 Feb 2008 19:26:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 5 Feb 2008 19:26:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 35831
Xref: news.mathworks.com comp.soft-sys.matlab:449449



Thank you for the tip!

I tried one example in DOS command window. The file can be 
copied and moved and the file name keeps the same (still 
shows the correct Chinese character). This is good. What I 
need next is to read the file name and extract a serial 
number from it, combine the serial number with some other 
Chinese characters and write it to a text file. It would 
be perfect if Matlab could treat the file name as any 
ordinary string. But it couldn't probably due to the fact 
that the file name contains Chinese characters. I looked 
for clues in unicode2native, native2unicode but couldn't 
figure it out. Is there any solution? Thanks!

dpb <none@non.net> wrote in message <foaa57
$s4o$1@aioe.org>...
> Fangjun Jiang wrote:
> ...
> 
> > So the question is, can Matlab string contain foreign 
> > characters? My need is to use a string to represent 
these 
> > fold and file names and then do copy, move and stuff.
> 
> Sounds like a TMW support query, but a workaround 
_might_ be to get the 
> short filename for the files via the
> 
> DIR /X
> 
> switch and try using that instead of the full "long" 
filename.
> 
> I don't know whether XP would create a base font name or 
whether it 
> might still have other characters in the filename or 
not, but it's one 
> thing might try...
> 
> --