By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

Euro sign in .Net

P: n/a
I have a problem, I want to enter euro sign () into a textbox.. but
after the postback, it is displayed as '?' .Can anybody help me with
this issue.

Thx

Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
the euro sign is a unicode symbol. hence in the aspx page it should be
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"
charset="UTF-8">
the charset should be given and mentioned as UTF-8

"rphil" wrote:
I have a problem, I want to enter euro sign (€) into a textbox.. but
after the postback, it is displayed as '?' .Can anybody help me with
this issue.

Thx

Nov 19 '05 #2

P: n/a
latha vallinayagam wrote:
the euro sign is a unicode symbol. hence in the aspx page it should
be <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"
charset="UTF-8">
the charset should be given and mentioned as UTF-8


What's more useful is to set the encoding in the HTTP header. That can
be done using the <globalization/> element's responseEncoding attribute
in web.config (which is UTF-8 by default).

One can also use certain 8 bit character sets to display the Euro
symbol (e.g. Windows-1252 or ISO-8859-15), but UTF-8 is usually the
better choice.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #3

P: n/a


I have the UTF-8 already set , on my web.config.. along with the meta
tag.. but it still does not display correctly.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4

P: n/a
royce philip wrote:
I have the UTF-8 already set , on my web.config.. along with the meta
tag.. but it still does not display correctly.


Did you make sure to allow your browser to automatically detect the
encoding? If it's set to a fixed encoding, it will always try to apply
exactly that encoding, regardless what the page actually uses.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.