473,230 Members | 1,448 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,230 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 2508
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");...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.