PC Review


Reply
Thread Tools Rate Thread

Displaying Unicode characters

 
 
Jonas
Guest
Posts: n/a
 
      8th Mar 2005
Hi!

I'm developing an ASP.NET application that fetches Unicode string data from
a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web pages
but when I have a string containing the subscripted character "2" (as in
CO2), I get the box character instead. This is a problem only in Internet
Explorer, because if I try my web page in Firefox, it shows the character in
a correct fashion. I've tried to use the Server.HTMLEncode function but it
doesn't help.

Any tips?

Jonas


 
Reply With Quote
 
 
 
 
Jan Il
Guest
Posts: n/a
 
      8th Mar 2005
Hi Jonas :-)

You might try the following and see if it will work for you:

<sub>2</sub>

This should be encoding independent

Hope this helps :-)

Jan
Smiles are meant to be shared,
that's why they're so contagious.

Replies are posted only to the newsgroup for the benefit or other readers.
How to make a good newsgroup post:
http://www.dts-l.org/goodpost.htm




> Hi!
>
> I'm developing an ASP.NET application that fetches Unicode string data
> from
> a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web
> pages
> but when I have a string containing the subscripted character "2" (as in
> CO2), I get the box character instead. This is a problem only in Internet
> Explorer, because if I try my web page in Firefox, it shows the character
> in
> a correct fashion. I've tried to use the Server.HTMLEncode function but it
> doesn't help.
>
> Any tips?
>
> Jonas
>



 
Reply With Quote
 
Robert Aldwinckle
Guest
Posts: n/a
 
      8th Mar 2005
"Jonas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> I'm developing an ASP.NET application that fetches Unicode string data from
> a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web pages
> but when I have a string containing the subscripted character "2" (as in
> CO2), I get the box character instead. This is a problem only in Internet
> Explorer, because if I try my web page in Firefox, it shows the character in
> a correct fashion.


My guess is that Firefox is looser about interpreting multi-byte
characters than IE. What is the string of ASCII characters
that is being used to represent this subscript 2?

According to CharMap Subscript Two is U+2082

http://www.fileformat.info/info/unic...2082/index.htm

shows that for UTF-8 it should be represented by E2 82 82

which means it could appear in Notepad (with character set
Windows Western) as
E2 - Latin small letter a with circumflex
82 - Single low 9 quotation mark

What do you see?


HTH

Robert Aldwinckle
---


> I've tried to use the Server.HTMLEncode function but it
> doesn't help.
>
> Any tips?
>
> Jonas
>
>




 
Reply With Quote
 
Jonas
Guest
Posts: n/a
 
      9th Mar 2005
The HTML-source shows that the output is â,, (E2 82 82) as you suggested.

Should I in someway alter the encoding to get this to work in IE?

Brgds

Jonas

"Robert Aldwinckle" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Jonas" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi!
>>
>> I'm developing an ASP.NET application that fetches Unicode string data
>> from
>> a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web
>> pages
>> but when I have a string containing the subscripted character "2" (as in
>> CO2), I get the box character instead. This is a problem only in Internet
>> Explorer, because if I try my web page in Firefox, it shows the character
>> in
>> a correct fashion.

>
> My guess is that Firefox is looser about interpreting multi-byte
> characters than IE. What is the string of ASCII characters
> that is being used to represent this subscript 2?
>
> According to CharMap Subscript Two is U+2082
>
> http://www.fileformat.info/info/unic...2082/index.htm
>
> shows that for UTF-8 it should be represented by E2 82 82
>
> which means it could appear in Notepad (with character set
> Windows Western) as
> E2 - Latin small letter a with circumflex
> 82 - Single low 9 quotation mark
>
> What do you see?
>
>
> HTH
>
> Robert Aldwinckle
> ---
>
>
>> I've tried to use the Server.HTMLEncode function but it
>> doesn't help.
>>
>> Any tips?
>>
>> Jonas
>>
>>

>
>
>



 
Reply With Quote
 
Jonas
Guest
Posts: n/a
 
      9th Mar 2005
Yes, I guess I could try to rewrite the HTML output if necessary, but I
rather would not because then I have to do this for every other possible
undisplayable character ...

Thanks

Jonas

"Jan Il" <(E-Mail Removed)> wrote in message
news:eYP%23$(E-Mail Removed)...
> Hi Jonas :-)
>
> You might try the following and see if it will work for you:
>
> <sub>2</sub>
>
> This should be encoding independent
>
> Hope this helps :-)
>
> Jan
> Smiles are meant to be shared,
> that's why they're so contagious.
>
> Replies are posted only to the newsgroup for the benefit or other readers.
> How to make a good newsgroup post:
> http://www.dts-l.org/goodpost.htm
>
>
>
>
>> Hi!
>>
>> I'm developing an ASP.NET application that fetches Unicode string data
>> from
>> a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web
>> pages
>> but when I have a string containing the subscripted character "2" (as in
>> CO2), I get the box character instead. This is a problem only in Internet
>> Explorer, because if I try my web page in Firefox, it shows the character
>> in
>> a correct fashion. I've tried to use the Server.HTMLEncode function but
>> it
>> doesn't help.
>>
>> Any tips?
>>
>> Jonas
>>

>
>



 
Reply With Quote
 
Robert Aldwinckle
Guest
Posts: n/a
 
      9th Mar 2005
"Jonas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The HTML-source shows that the output is â,, (E2 82 82) as you suggested.
>
> Should I in someway alter the encoding to get this to work in IE?


Do you have an example that others could try and analyse?
Having a recreatable symptom is a requirement to having
an incident looked at for analysis and fixing.

I have been hoping to find ways of diagnosing these problems
which is more systematic and captures all the various factors
for analysis but haven't had much luck. I think it may extend
into a user's Language settings but I haven't had enough
incidents to support or contradict that conjecture.

Recently a poster who was having a similar problem discovered
that he could avoid the symptom by deleting an unused font.
I have no idea how that font would get selected for that particular
character. Unfortunately, he also didn't explain how he was able
to pick that particular font for deletion. Sounded like it was a bit
of a hit or miss procedure. FWIW here is a repeat of my final reply
to that thread:

http://groups-beta.google.com/group/...d38557c0a8b6d6

(Google Groups search for:
lotus font aldwinckle group:microsoft.*.ie6.browser
)


BTW I think you would probably get more knowledgeable comment
from a newsgroup which specializes in web development.


Good luck

Robert
---


>
> Brgds
>
> Jonas
>
> "Robert Aldwinckle" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> "Jonas" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi!
>>>
>>> I'm developing an ASP.NET application that fetches Unicode string data
>>> from
>>> a SQL Server. I'm using "Lucinda Sans Unicode" as the font for my web
>>> pages
>>> but when I have a string containing the subscripted character "2" (as in
>>> CO2), I get the box character instead. This is a problem only in Internet
>>> Explorer, because if I try my web page in Firefox, it shows the character
>>> in
>>> a correct fashion.

>>
>> My guess is that Firefox is looser about interpreting multi-byte
>> characters than IE. What is the string of ASCII characters
>> that is being used to represent this subscript 2?
>>
>> According to CharMap Subscript Two is U+2082
>>
>> http://www.fileformat.info/info/unic...2082/index.htm
>>
>> shows that for UTF-8 it should be represented by E2 82 82
>>
>> which means it could appear in Notepad (with character set
>> Windows Western) as
>> E2 - Latin small letter a with circumflex
>> 82 - Single low 9 quotation mark
>>
>> What do you see?
>>
>>
>> HTH
>>
>> Robert Aldwinckle
>> ---
>>
>>
>>> I've tried to use the Server.HTMLEncode function but it
>>> doesn't help.
>>>
>>> Any tips?
>>>
>>> Jonas
>>>
>>>

>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Unicode characters in MAPI Address Book mikebabb@cableaz.com Microsoft Outlook 1 20th Dec 2006 09:23 PM
Problem displaying Unicode characters on my forms labels and butto =?Utf-8?B?S2lkdXMgWWFyZWQ=?= Microsoft C# .NET 3 25th May 2005 07:49 AM
Posted Unicode Characters Displaying as "???" =?Utf-8?B?Q2hyaXN0aWFuIE51bmNpYXRv?= Microsoft ASP .NET 3 8th May 2005 04:10 PM
Displaying Unicode characters Jonas Microsoft ASP .NET 6 9th Mar 2005 12:59 PM
Re: Displaying Unicode characters on buttons Paul G. Tobey [eMVP] Microsoft Dot NET Compact Framework 0 30th Jun 2004 07:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 PM.