Accents

P

Paulo

What is the command to replace the accents for the browser recognizing them?

Because on "Response.Write(rs("FieldName"))" comes from the DB a word with
accent like: "Vitória"

But the browser shows a strange character on this word " ó "

But if I go to the source code page it shows ok...
 
M

Martin Honnen

Paulo said:
What is the command to replace the accents for the browser recognizing them?

Because on "Response.Write(rs("FieldName"))" comes from the DB a word with
accent like: "Vitória"

But the browser shows a strange character on this word " ó "

You need to tell the browser the encoding used for your response. You
can do that by setting
Response.Charset = "ISO-8859-1"
where ISO-8859-1 is just an example, replace that with the encoding you use.
 
D

Daniel Crichton

Paulo wrote on Fri, 24 Jul 2009 11:56:38 -0300:
What is the command to replace the accents for the browser recognizing
them?
Because on "Response.Write(rs("FieldName"))" comes from the DB a word
with accent like: "Vitória"
But the browser shows a strange character on this word " ó "
But if I go to the source code page it shows ok...


As well as Martin's suggestion, you can do this:

Response.Write Server.HTMLEncode(rs("FieldName"))

which will replace all the extended characters with their HTML encoded
versions.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top