473,387 Members | 1,374 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,387 software developers and data experts.

Encoding

Hi to everyone!

I have a problem with encoding in ASP.NET, in server side code i'm using a
Response.Write sentence, for example
Response.Write("<P>Composición</P>")
the text "Composición" i get from a database, the problem is when the above
line is executed, in the browser show something
like this:
Composi#%n

I'm using the Server.HtmlEncode, but the result is the same.
Anybody know if exists a function that its return for example:
Composici&oacute;n??

ThanX
Nov 18 '05 #1
2 991
Hi Tilo,
Response.Write("<P>Composición</P>")
It works okay for me in IE6 with the encoding set to Unicode (UTF-8). Are
you using a unicode font in the browser?

If it is a font or settings issue, you might look here:

http://www.alanwood.net/unicode/explorer.html#ie5
"Tilo Wolff#" <ca********@hotmail.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl... Hi to everyone!

I have a problem with encoding in ASP.NET, in server side code i'm using a
Response.Write sentence, for example
Response.Write("<P>Composición</P>")
the text "Composición" i get from a database, the problem is when the
above
line is executed, in the browser show something
like this:
Composi#%n

I'm using the Server.HtmlEncode, but the result is the same.
Anybody know if exists a function that its return for example:
Composici&oacute;n??

ThanX


Nov 18 '05 #2
thanx for the response.

in IE (5.x, 6) this works fine in IE 5.x, 6
the problem (an i forgive) is when i show the page in Outlook in the Outlook
Today
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:ew*************@TK2MSFTNGP12.phx.gbl...
Hi Tilo,
Response.Write("<P>Composición</P>")


It works okay for me in IE6 with the encoding set to Unicode (UTF-8). Are
you using a unicode font in the browser?

If it is a font or settings issue, you might look here:

http://www.alanwood.net/unicode/explorer.html#ie5
"Tilo Wolff#" <ca********@hotmail.com> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
Hi to everyone!

I have a problem with encoding in ASP.NET, in server side code i'm using a Response.Write sentence, for example
Response.Write("<P>Composición</P>")
the text "Composición" i get from a database, the problem is when the
above
line is executed, in the browser show something
like this:
Composi#%n

I'm using the Server.HtmlEncode, but the result is the same.
Anybody know if exists a function that its return for example:
Composici&oacute;n??

ThanX

Nov 18 '05 #3

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

Similar topics

10
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6...
8
by: davisjoseph | last post by:
Hi All, I'm newbie to this XML world. My problem is to identify the encoding type of XML at runtime. What currently I'm doing is checking whether BOM is available in the XML; based on the BOM...
8
by: Demon News | last post by:
I'm trying to do a transform (Using XmlTransform class in c#) and in the Transform I'm specifying the the output xsl below: <xsl:output method="xml" encoding="UTF-8" indent="no"/> the...
4
by: fitsch | last post by:
Hi, I am trying to write a generic RSS/Atom/OPML feed client. The problem is, that those xml feeds may have different encodings: - <?xml version="1.0" encoding="ISO-8859-1" ?>... - <?xml...
2
by: velle | last post by:
My headache is growing while playing arround with unicode in Python, please help this novice. I have chosen to divide my problem into a few questions. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) ...
0
by: Chris McDonough | last post by:
ElementTree's XML serialization routine implied by tree._write(file, node, encoding, namespaces looks like this (elided): def _write(self, file, node, encoding, namespaces): # write XML to file...
4
by: Bob | last post by:
Hi Need to produce a Doc with no encoding info. Is there anyway of doing this? Thanks Bob i.e. <?xml version=\"1.0\" ?>
4
by: Christina | last post by:
Hey Guys, Currently, I am using the below code: Dim oReqDoc as XmlDocument Dim requiredBytes As Byte() requiredBytes = System.Text.UTF8Encoding.UTF8.GetBytes(oReqDoc.InnerXml). Here, I am...
3
by: mortb | last post by:
1. How do I determine which encoding a xmldocument or xmlreader uses when opening a document? I'm not just talking about the <?xml encoding="utf-8"?attribute, but the actual encoding of the...
1
by: ujjwaltrivedi | last post by:
Hey guys, Can anyone tell me how to create a text file with Unicode Encoding. In am using FileStream Finalfile = new FileStream("finalfile.txt", FileMode.Append, FileAccess.Write); ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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.