Euro sign in .Net

  • Thread starter Thread starter rphil
  • Start date Start date
R

rphil

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
 
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
 
latha said:
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,
 
I have the UTF-8 already set , on my web.config.. along with the meta
tag.. but it still does not display correctly.
 
royce said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem: Euro sign in sending email ! 7
Euro Crisis? 1
Displaying Euro Symbol 5
Currency value = ? 1
Powerpoint calculation VB 0
defaulting to Euros 3
Format to Euro instead of Dollar 8
mapping keyboard 4

Back
Top