473,797 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

foreign character encoding

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.

&aacute 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.QuerySt ring, they simply disappear.

a call test.aspx?param =áa&eacu te;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.HtmlEnco de(string) and
Server.URLEncod e(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?
Nov 17 '05 #1
2 9422
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 -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
<globalizatio n
fileEncoding="i so-8859-1"
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
/>

</system.web>

</configuration>

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Harley" <harleyobrien%4 0hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.

&aacute 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.QuerySt ring, they simply disappear.

a call test.aspx?param =&aacute;a&eacu te;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.HtmlEnco de(string) and
Server.URLEncod e(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?

Nov 17 '05 #2
the web.config settings did it.
thank you!

"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:eX******** ******@tk2msftn gp13.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 -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
<globalizatio n
fileEncoding="i so-8859-1"
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
/>

</system.web>

</configuration>

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Harley" <harleyobrien%4 0hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.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.

&aacute 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.QuerySt ring, they simply disappear.

a call test.aspx?param =&aacute;a&eacu te;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.HtmlEnco de(string) and Server.URLEncod e(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?


Nov 17 '05 #3

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

Similar topics

9
4933
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 missing in response stream. The same search in the internet explorer shows all the characters. I am sending all the required headers with the HTTPWebrequest. Following code is used to get gogle results
8
2734
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 the time editing it with all the html code ie "ścią". Certainly someone must have a program that can do this automatically.
23
3156
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, won't translate it. When I paste the text into the code, the special characters are missing. If they would show up there I could use the Replace Special Characters feature to change it to the proper code, but it won't even paste into it...
13
2510
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 justifiable, because the underlying stuff is technology, computing technologies, are in a laymen sense, extremely complex. In order to be able to type the bullet char, post it to a newsgroup,
9
1795
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 me from reading the name and passing it to a master database for proper storage and reporting. Can anyone tell me if there is a chart mapping non-english characters to English equivalents? We can use any of the extended characters, such as Ü (as...
13
51647
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
1
3717
by: George Woodring | last post by:
I have 2 existing tables in my db: iss=> \d pollgrpinfo Table "public.pollgrpinfo" Column | Type | Modifiers ---------------+------------------------+----------- pollgrpinfoid | integer | not null pollgrpid | integer | not null name | character varying(100) | descript | character varying(200) |
16
3430
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. I am storing a list of files in an XML file as a sort of database. Some of these filenames have accented characters (i.e. á é í ó ú or ñ). However, upon writing the filename to the XML file, the accented character is dropped. This causes a...
17
10710
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 talking with another team -- codepage -- at the same time. I am more confused when I saw sometimes we need codepage parameter for wide character conversion, and sometimes we do not need for conversion. Here are two examples,
0
9536
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10245
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7559
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.