Re: [xsl] Unicode usage

Subject: Re: [xsl] Unicode usage
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 24 Jan 2002 15:33:40 -0500
[<Betty.Risher@xxxxxxxxxxxx>]
>
> I am having a problem calling out certain unicodes. I am currently testing
our
> set of defined codes and most of them are showing.  I am having issues
mainly
> with mathmatical symbols and arrows. They are currently displaying as
empty
> boxes where the character representation should be.  I have set my output
line
> as:  <xsl:output method="html" indent="yes" encoding="utf-8"/>
> I also tried:  <xsl:output method="html" indent="yes" encoding="utf-16"/>
>
>
> I am currently using IE5.5 and have check the settings to verify the
ENCODING
> settings accept UTF-8.
>

"Accept" settings aren't the same as display settings.  Normally, Microsoft
products (i.e., Windows) display using a Microsoft character set, the famous
codepage 1252 (I think that's the one).  So you may well have the correct
unicode character, but it will be displayed according to the codepage.  If
the codepage doesn't have characters for them, it will show empty boxes.

It's possible that your processor will be able to output the Microsoft
encoding (I forget the usual encoding string for this, but you should be
able to find it, something like: encoding='cp-1252').  Or you could try for
iso-8859-1 and see if you get usable displayed characters.

There's no use in changing the codepage on your own computer to try to solve
this, because other people who might see your pages won't have changed their
settings, and some of them may be using codepages for different alphabets
anyway.

Maybe someone else knows a solution for this problem of displaying
high-order characters...

Cheers,

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread