473,386 Members | 1,835 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.

unicode characters in web form aspx pages, utf-8

hi,

i need to include some non english text in some web from aspx pages, in
which i used unicode characters and saved them with unicode encoding
(without signature).

in regular html only pages i add the following line to the <head> section to
make the text show up properly, otherwise it shows up as garbage.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

when i do this in aspx page, the unicode text still shows up as garbage.

how can i make the unicode show properly?

please include a snipett of sample.

thanks

ray

Nov 19 '05 #1
7 7020
ray well wrote:
hi,

i need to include some non english text in some web from aspx pages,
in which i used unicode characters and saved them with unicode
encoding (without signature).

in regular html only pages i add the following line to the <head>
section to make the text show up properly, otherwise it shows up as
garbage.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

when i do this in aspx page, the unicode text still shows up as
garbage.

how can i make the unicode show properly?


META tags are just a last resort, and they are plain useless if the
page's encoding isn't the supposed encoding.

Are you really using UTF-8 as response encoding and is your browser
configured to pick up the encoding automatically?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2
i'm not using the unicode in response code, but in labels indentifying areas
on the page (which shows up as garbage. my browser can read the encoding in
regular html pages, so it is configured to read the encoding.

ray
Nov 19 '05 #3
If you are using characters in the range 128-255,
you need to use iso-8859-1 as your encoding, and not 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...
======================

"ray well" <no****@nospam.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
hi,

i need to include some non english text in some web from aspx pages, in
which i used unicode characters and saved them with unicode encoding
(without signature).

in regular html only pages i add the following line to the <head> section
to
make the text show up properly, otherwise it shows up as garbage.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

when i do this in aspx page, the unicode text still shows up as garbage.

how can i make the unicode show properly?

please include a snipett of sample.

thanks

ray


Nov 19 '05 #4
i'm not using char 128-255, i need to use unicode char.

ray
Nov 19 '05 #5
Have you set the encoding settings 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...
======================

"ray well" <no****@nospam.com> wrote in message
news:eH**************@TK2MSFTNGP15.phx.gbl...
i'm not using char 128-255, i need to use unicode char.

ray

Nov 19 '05 #6
Juan,

thanks for

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

i was missing fileEncoding="utf-8", i had the other 2, when i added this it
started working.

thanks again

ray
Nov 19 '05 #7
"It's the little things that getcha."
-unknown philosopher

Glad it's working now!

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

"ray well" <no****@nospam.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
Juan,

thanks for

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

i was missing fileEncoding="utf-8", i had the other 2, when i added this
it
started working.

thanks again

ray

Nov 19 '05 #8

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

Similar topics

1
by: krammer | last post by:
Hello, I have the following questions that I have not been able to find any *good* answers for. Your help would me much appreciated!, fyi, I am a Java XML guy and I have no experience with SGML...
27
by: EU citizen | last post by:
Do web pages have to be created in unicode in order to use UTF-8 encoding? If so, can anyone name a free application which I can use under Windows 98 to create web pages?
48
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at...
8
by: Eric Lilja | last post by:
Hello, I had what I thought was normal text-file and I needed to locate a string matching a certain pattern in that file and, if found, replace that string. I thought this would be simple but I had...
4
by: Marco Iannaccone | last post by:
I'd like to start using Unicod (especially UTF-8) in my C programs, and would like some infos on how to start. Can you tell me some documents (possibily online) explaining Unidoce and UTF-8, and...
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...
12
by: damjan | last post by:
This may look like a silly question to someone, but the more I try to understand Unicode the more lost I feel. To say that I am not a beginner C++ programmer, only had no need to delve into...
17
by: Adam Olsen | last post by:
As was seen in another thread, there's a great deal of confusion with regard to surrogates. Most programmers assume Python's unicode type exposes only complete characters. Even CPython's own...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.