im working on an ASP.NET app in VB.NET and have problems with foreign
characters.
everything works ok, special characters are presented ok onscreen when typed
in the body of the page, using html encoding or not, i.e.
á and á both display an a with an acute symbol
the problem come when is pass foreign characters using parameters and get
the using Server.Params or Request.QueryString, they simply disappear.
a call test.aspx?param=áaée
should show the param string as áaée, but it only shows it as ae.
both pages are using utf-8 charset, but i also tryied without it, and didnt
work either...
also tryied to encode the querystring using Server.HtmlEncode(string) and
Server.URLEncode(string) before passing it, but nothing...
my system is configured as any regular us machine, english os, english
explorer, etc. nothing special there... any hint? 2 9399
Have you tried setting it to use unicode?
Here's more info on the subject: http://msdn.microsoft.com/library/de...gbasetypes.asp
Also, have you checked the Globalization section of the web.config?
Try changing it to something more like this:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Harley" <harleyobrien%40hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... im working on an ASP.NET app in VB.NET and have problems with foreign characters. everything works ok, special characters are presented ok onscreen when
typed in the body of the page, using html encoding or not, i.e.
á and á both display an a with an acute symbol
the problem come when is pass foreign characters using parameters and get the using Server.Params or Request.QueryString, they simply disappear.
a call test.aspx?param=áaée
should show the param string as áaée, but it only shows it as ae.
both pages are using utf-8 charset, but i also tryied without it, and
didnt work either...
also tryied to encode the querystring using Server.HtmlEncode(string) and Server.URLEncode(string) before passing it, but nothing...
my system is configured as any regular us machine, english os, english explorer, etc. nothing special there... any hint?
the web.config settings did it.
thank you!
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:eX**************@tk2msftngp13.phx.gbl... Have you tried setting it to use unicode? Here's more info on the subject: http://msdn.microsoft.com/library/de...gbasetypes.asp Also, have you checked the Globalization section of the web.config? Try changing it to something more like this:
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="Off"/> <globalization fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" />
</system.web>
</configuration>
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Harley" <harleyobrien%40hotmail.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... im working on an ASP.NET app in VB.NET and have problems with foreign characters. everything works ok, special characters are presented ok onscreen when typed in the body of the page, using html encoding or not, i.e.
á and á both display an a with an acute symbol
the problem come when is pass foreign characters using parameters and
get the using Server.Params or Request.QueryString, they simply disappear.
a call test.aspx?param=áaée
should show the param string as áaée, but it only shows it as ae.
both pages are using utf-8 charset, but i also tryied without it, and didnt work either...
also tryied to encode the querystring using Server.HtmlEncode(string)
and Server.URLEncode(string) before passing it, but nothing...
my system is configured as any regular us machine, english os, english explorer, etc. nothing special there... any hint?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mangesh |
last post by:
hi,
I am using HTTPWebrequest object to download google results.
in the response stream I am not getting some foreign characters
eg. If I search "signo de pregunta", all the spanish characters are...
|
by: gregf |
last post by:
Is there a way or a program (for windows) that can translate foreign
characters inot the proper html code? I have a word document with many
different characters and I really don't want to spend all...
|
by: gregf |
last post by:
I have a paragraph of text pasted into a word document, it's in Polish,
complete with polish characters. They show up just fine in word, but
the program I use for web page programming, HomeSite,...
|
by: Xah Lee |
last post by:
the Journey of Foreign Characters thru Internet
Xah Lee, 20051101
There's a bunch of confusions about the display of non-ascii characters
such as the bullet "•". These confusions are...
|
by: jmev7 |
last post by:
I'm in the US, and have to constantly take data input from other
countries. Some of this data has characters which I can't understand,
since it's input from other language keyboards. This prevents...
|
by: Tibor |
last post by:
I am using PostgreSQL 7.4.1 (only through psql)
I know, that the command
ALTER TABLE OFFICES
DROP PRIMARY KEY (CITY);
and its foreign key equivalent:
ALTER TABLE SALESREPS
DROP CONSTRAINT
|
by: George Woodring |
last post by:
I have 2 existing tables in my db:
iss=> \d pollgrpinfo
Table "public.pollgrpinfo"
Column | Type | Modifiers
---------------+------------------------+-----------...
|
by: Hugh Janus |
last post by:
Hi all,
I posted a couple of weeks ago with what I thought was a problem with
the file system reading accented characters however, after debugging
line by line I have now found the true problem....
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |