473,325 Members | 2,671 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,325 software developers and data experts.

Posted Unicode Characters Displaying as "???"

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 Unicode characters I type into the textboxes of my ASPX Web
pages (via IE6) to post back to the server and get saved in my SQL database
as Armenian Unicode characters. Not having much luck, though -- all I get
back are question marks.

If I manually I insert the Armenian Unicode characters into the database and
then request them via Web browser, they come out just fine. My Web.config
file contains the following line:

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

.... but still no dice. I admit I'm very new to this stuff, so I'm thinking
perhaps I might have my files saved incorrectly? Again, I'm using Visual
Studio .NET and I'm located in the US, and I don't believe I've manipulated
any of the default settings with regard to file encoding or whatnot, so I'm
stumped.

(My browser's set to UTF-8, incidentally, and it might be worth noting that
when I change my fileEncoding attribute to "Unicode" -- just saw it somewhere
and figured I'd give it a try -- I get an error in Global.asax complaining
about invalid content.)

Any help would be hugely appreciated.

Thanks!
Chris N.
MSDN Universal Subscriber
Nov 19 '05 #1
3 2516
Christian Nunciato wrote:
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 Unicode characters I type into the textboxes of
my ASPX Web pages (via IE6) to post back to the server and get saved
in my SQL database as Armenian Unicode characters. Not having much
luck, though -- all I get back are question marks.

If I manually I insert the Armenian Unicode characters into the
database and then request them via Web browser, they come out just
fine. My Web.config file contains the following line:

<globalization requestEncoding="utf-8" responseEncoding="utf-8"
fileEncoding="utf-8" />
OK.
... but still no dice. I admit I'm very new to this stuff, so I'm
thinking perhaps I might have my files saved incorrectly?
Just make sure that you really save all your ASP.NET source files in
UTF-8.
Again, I'm using Visual Studio .NET and I'm located in the US, and I
don't believe I've manipulated any of the default settings with regard to file encoding or whatnot, so I'm stumped.
If you didn't change the file encoding in VS .NET (UTF-8 is not the
default encoding in the VS .NET versions I'm aware of), you most likely
won't be able to display static Armenian text either.
(My browser's set to UTF-8, incidentally, and it might be worth
noting that when I change my fileEncoding attribute to "Unicode" --
just saw it somewhere and figured I'd give it a try -- I get an error
in Global.asax complaining about invalid content.)
Hm... what happens if you allow your browser to pick up the character
encoding by itself? What browser are you using?
Any help would be hugely appreciated.


Save for the file encoding part (which affects only source files at
build time) it seems you didn't do anything wrong.

The first thing I do in case a page's encoding seems to be screwed up
is to switch between all encodings the browser supports. Once I've
found out which encoding is actually being used, I trace my way back to
the culprit from there.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2
Have you tried using iso-8859-1 for your encoding ?

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

"Christian Nunciato" <Ch***************@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
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 Unicode characters I type into the textboxes of my ASPX Web
pages (via IE6) to post back to the server and get saved in my SQL database
as Armenian Unicode characters. Not having much luck, though -- all I get
back are question marks.

If I manually I insert the Armenian Unicode characters into the database and
then request them via Web browser, they come out just fine. My Web.config
file contains the following line:

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

... but still no dice. I admit I'm very new to this stuff, so I'm thinking
perhaps I might have my files saved incorrectly? Again, I'm using Visual
Studio .NET and I'm located in the US, and I don't believe I've manipulated
any of the default settings with regard to file encoding or whatnot, so I'm
stumped.

(My browser's set to UTF-8, incidentally, and it might be worth noting that
when I change my fileEncoding attribute to "Unicode" -- just saw it somewhere
and figured I'd give it a try -- I get an error in Global.asax complaining
about invalid content.)

Any help would be hugely appreciated.

Thanks!
Chris N.
MSDN Universal Subscriber

Nov 19 '05 #3
Hi Juan:
Have you tried using iso-8859-1 for your encoding ?


Just tried that, and now my characters seem to be getting posted back as
escaped HTML characters (%#123;, etc.), which throws a warning on postback.
Setting the ValidateRequest property of the @Page directive to false lets
them through as escaped HTML characters.

Thoughts?

Chris
Nov 19 '05 #4

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

Similar topics

5
by: Ali | last post by:
I was wondering how one would go about displaying unicode in a Label object in a Tkinter window. I am trying to display text in another language. Please help.
6
by: nico | last post by:
In my python scripts, I use a lot of accented characters as I work in french. In order to do this, I put the line # -*- coding: UTF-8 -*- at the beginning of the script file. Then, when I need...
1
by: Daman | last post by:
Hi, I am currently facing difficulty displaying chinese, japanese, russian etc. characters. I am using VB 6 and ADO to query the DB2 Version 7.2 unicode database (UTF-8). The resultset that...
4
by: Jane | last post by:
I cannot get Korean data to show up in Command Center or Crystal Reports. I wrote a small JDBC program and that is working fine. Here are the details. DB2 Server : AIX DB2 8.1.3 64 bit...
3
by: Andres A. | last post by:
I have bunch of unicode characters stored as Decimal is there a easy way of displaying unicode from Decimal numbers or do i have to convert the decimal to hex then display the hex? i ran into a...
3
by: Kidus Yared | last post by:
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or...
3
by: Mohammad-Reza | last post by:
We are writing an application for a specific culture(Arabic or Farsi). This application involves using DataAdapter, OLEDB Connection and the DataSet. We didn't use the .NET data binding, just field...
6
by: Bill Nguyen | last post by:
I'm getting data from a mySQL database (default char set = UTF-8). I need to display data in Unicode but got only mongolian characters like this: Phạm Thị Ngọc I changed the textbox font to...
8
by: miztaken | last post by:
Hi, I have a string with some unicode characters and when i tried to displayed it in TreeView its not displaying. I am doing like this: TreeNode tn = new TreeNode("unicodestring");...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.