473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Displaying Unicode characters

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
Nov 19 '05 #1
6 1974
Try this in web.config :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
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

Nov 19 '05 #2
Hi !

I added the fileEncoding attribute to my existing globalization element, but
I still get the box character instead of subscript two.

Brgds

Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try this in web.config :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
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


Nov 19 '05 #3
Does utf-8 support the subscript two glyph?
Maybe it's some other encoding you need ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:OK*************@TK2MSFTNGP14.phx.gbl...
Hi !

I added the fileEncoding attribute to my existing globalization element,
but I still get the box character instead of subscript two.

Brgds

Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try this in web.config :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
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



Nov 19 '05 #4
It works when I view the page in Firefox ... unfortuneately the rest of the
design is made for IE :-/

/Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
Does utf-8 support the subscript two glyph?
Maybe it's some other encoding you need ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:OK*************@TK2MSFTNGP14.phx.gbl...
Hi !

I added the fileEncoding attribute to my existing globalization element,
but I still get the box character instead of subscript two.

Brgds

Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try this in web.config :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
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



Nov 19 '05 #5
I checked the HTML-source and it contains â,, (E2 82 82) which should be the
correct encoding of subscript two.

/Jonas

"Jonas" <jo***@no.spam.pl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
It works when I view the page in Firefox ... unfortuneately the rest of
the design is made for IE :-/

/Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
Does utf-8 support the subscript two glyph?
Maybe it's some other encoding you need ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:OK*************@TK2MSFTNGP14.phx.gbl...
Hi !

I added the fileEncoding attribute to my existing globalization element,
but I still get the box character instead of subscript two.

Brgds

Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Try this in web.config :

<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:Ok**************@TK2MSFTNGP14.phx.gbl...
> 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
>



Nov 19 '05 #6
Try setting IE to use the desired encoding.

From IE's menu : "View", "Encoding".

See if that makes a difference...


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I checked the HTML-source and it contains â,, (E2 82 82) which should be
the correct encoding of subscript two.

/Jonas

"Jonas" <jo***@no.spam.pl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
It works when I view the page in Firefox ... unfortuneately the rest of
the design is made for IE :-/

/Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
Does utf-8 support the subscript two glyph?
Maybe it's some other encoding you need ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Jonas" <jo***@no.spam.pl> wrote in message
news:OK*************@TK2MSFTNGP14.phx.gbl...
Hi !

I added the fileEncoding attribute to my existing globalization
element, but I still get the box character instead of subscript two.

Brgds

Jonas

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> Try this in web.config :
>
> <globalization
> requestEncoding="utf-8"
> responseEncoding="utf-8"
> fileEncoding="utf-8"
> />
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Jonas" <jo***@no.spam.pl> wrote in message
> news:Ok**************@TK2MSFTNGP14.phx.gbl...
>> 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
>>
>
>



Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Quimbly | last post by:
Hi, I'm just trying to do something very simple, but I can't find a simple example. In a TextBox and Button on a WinForm, I just want to display some Unicode characters -- specifically, U+2660,...
3
by: Kidus Yared | last post by:
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or...
3
by: Christian Nunciato | last post by:
Hi all: I've read through the various related posts in this forum, but without any success as yet. I've got an ASP.NET application built in VS.NET 2003, and I'm trying to get the Armenian...
4
by: Kivanc Toker | last post by:
Hi, I've got a problem with displaying texts with turkish characters. There is a website administration system, which is developed using ASP (VBScript) and ADO. This system is being used for...
2
by: David Scemama | last post by:
Hi, I'm looking for a way to display semi graphic characters in a multi line text control or in a rich text control. I've tried with all the characters of the extended ASCII table (code page...
11
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input...
4
by: amit34349 | last post by:
Hello , I have an issue in displaying the Cyrillic Characters in HTML page for e.g - i want to display a cyrillic Character string ...
5
by: tushar.saxena | last post by:
This post is a follow up to the post at : http://groups.google.com/group/comp.lang.c++/browse_thread/thread/83af6123fa945e8b?hl=ug#9eaa6fab5622424e as my original question was answered there, but I...
4
by: adiel_g | last post by:
I am trying to display some data that I received into a form. The form is in english. The data is in cyrillic (russian) which uses codepage 1251. I am trying to change the button text to...
6
by: Shankar | last post by:
Hi, I am not able to print the Unicode character on the console. I tried with these API's 1) wprintf() displays ??????? 2) _cwprintf() displays
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.