Path: news.mathworks.com!not-for-mail
From: "Matthew Simoneau" <matthew@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying Unicode using editor cell mode publish (utf-8 encoded
Date: Tue, 20 May 2008 06:28:02 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 11
Message-ID: <g0tr1i$ckb$1@fred.mathworks.com>
References: <4829bcf2$0$4073$4c368faf@roadrunner.com>
Reply-To: "Matthew Simoneau" <matthew@mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1211264882 12939 172.30.248.35 (20 May 2008 06:28:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 20 May 2008 06:28:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 25640
Xref: news.mathworks.com comp.soft-sys.matlab:469397



The only thing I can think of is to escape it yourself and
then use the <html> tag to pass it straight through.  This
code should get you started:

a = uint8([hex2dec('E2'),hex2dec('8C'),hex2dec('A0')]);
b = native2unicode(a,'UTF-8');
c = uint16(b);
fprintf('<html>&#%.0f;</html>\n',c)

It seems like this should be handled automatically, but I
need to do some more digging.