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

How to Avoid Special Character Conversion ?

Value entered in textarea is: "this "TEST" is not going well"

JS sends to server this value: "this "TEST" is not going well"

How to force JS not to convert the string ? I want JS to send exactly what
is typed in the form controls.
Is there a function to call ?
Thx
Aug 23 '05 #1
3 2965
ASM
RobertTG wrote:
Value entered in textarea is: "this "TEST" is not going well"

JS sends to server this value: "this "TEST" is not going well"
yes but inverse convertion would be done automaticaly
How to force JS not to convert the string ?


does it JS who convert the string ?
do :
alert(document.form1.myTextarea.value)
to see
or your browser ?

do you use a doctype on your page
if yes, wich one ?
do you have a meta caractere-encoding ?
wich one ?
try to use a charset-encoding : utf-8

if JS html-entities encodes your string(*), try :
text = unescape(document.form1.myTextarea.value)
(*) I would be very surprised JS converts in html-entities ! ! !

--
Stephane Moriaux et son [moins] vieux Mac
Aug 23 '05 #2

RobertTG wrote:
Value entered in textarea is: "this "TEST" is not going well"

JS sends to server this value: "this "TEST" is not going well"


What JS code do you use to send something to the server? And what are
you using on the server to check out the data sent?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 24 '05 #3
Thanks ! you're right !
I cried wolf - turns out it was server-side that performed the escape.

"ASM"
(*) I would be very surprised JS converts in html-entities ! ! !

Aug 24 '05 #4

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

Similar topics

50
by: The Bicycling Guitarist | last post by:
A browser conforming to HTML 4.0 is required to recognize &#number; notations. If I use XHTML 1.0 and charset UTF-8 though, does é have as much support as é ? Sometimes when I run...
2
by: Ozer | last post by:
Hi friends, I wanna ask something. I use javascript menu on my user interface. And the js files contains special(turkish) character. I need to use codepage=1254 attribute in my @Page tag. If i...
4
by: Lucky | last post by:
Hi Guys!!! i'm newbie to asp.net 2.0. i've got a problem. i've a textfield on my webpage and if i insert " can't " or " test - test " value into it and post it back the " ' " and " - " get...
1
by: sonald | last post by:
Dear All, I am working on a module that validates the provided CSV data in a text format, which must be in a predefined format. We check for the : 1. Number of fields provided in the text file,...
0
by: saul.baizman | last post by:
Here's a brief description of the problem. My organization has a client who cuts and pastes information from Microsoft Word documents into web-based forms, whose contents is then displayed on a...
3
by: jeyabarani | last post by:
Hi guys, I want to check whether the user has entered any special characters in a text box. If the user enters, i want to display an alert message stating that he cant enter a special character...
1
kaleeswaran
by: kaleeswaran | last post by:
Hi! i am handling password generation module..... i need to force the user enter the special character in their password thing.so i need to handle the special character.so...
1
by: Ragavendran | last post by:
Hi, I am using this method for search: Query =org.apache.lucene.queryParser.QueryParser.parse(String arg0) throws ParseException Hits = org.apache.lucene.search.Searcher.search(Query query,...
1
by: dinesh1985singh | last post by:
Hello Everyone, In my database I found few special character,these special character were get stored even after using proper function for striping out these character,like mysql_real_escape...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
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.