Cannot Submit Special Characters from Input Fields

This is a discussion on "Cannot Submit Special Characters from Input Fields" within the ASP.NET Forum section. This forum, and the thread "Cannot Submit Special Characters from Input Fields are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 30th, 2006, 11:13
New Member
Join Date: Aug 2006
Location: Stafford, UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Cannot Submit Special Characters from Input Fields

Hi all,

I'm having a strange error with ASP.NET that doesn't happen with classic ASP.
I have a form with an input field and a textarea. I type in a string such as:

"$200 dollars and £100 pounds"

to either of these fields. When I click the submit button it should display the output on the page. The following text appears instead:

"$200 dollars and 100 pounds"

It seems that it is only submitting special ASCII characters and ignores the good ol' British pound sign. Has anyone else had this problem?

Obviously I would have liked to search Google on this issue, but Google seems to ignore £ signs and if i type "pound sign" into Google, you get all this information about hash symbols (#) for some reason.

Thanks for any replies,
Steve
Reply With Quote

  #2 (permalink)  
Old Aug 30th, 2006, 16:08
New Member
Join Date: Aug 2006
Location: Stafford, UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cannot Submit Special Characters from Input Fields

I have now figured out what was wrong. Macromedia Dreamweaver has annoyingly put this line at the top of the page

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>

...which meant that £'s were missed out in the response.

I then removed the response encoding value to reset it to the default...

<%@ Page Language="VB" ContentType="text/html" %>

...and everything is now OK.

I could also set the value to utf-8, but that's the default anyway.

Hope this helps someone.

Steve
Reply With Quote
Reply

Tags
cannot, submit, special, characters, input, fields

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fgetcsv problem with special characters pwbiggs PHP Forum 1 Apr 27th, 2008 19:25
Get var not working with special characters skuliaxe PHP Forum 0 Mar 30th, 2008 22:35
FLASH - validating input fields if empty before clicking submit button kyutkb Flash & Multimedia Forum 3 Jul 24th, 2007 15:38
passing search data to d/b via a hyperlink and without input fields Colm Osiris Databases 5 May 23rd, 2006 11:38
Firefox 1.0.6 - strange input fields color blankconcept Web Page Design 3 May 9th, 2006 15:35


All times are GMT. The time now is 06:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43