Hi,
Is there a standard way to deal with special characters like (r), (c)
etc in a CGI form and store the data in an Oracle database?
Thanks!
Nengbing
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http
TAO, NENGBING [AG/1000] [TN], on Wednesday, April 27, 2005 at 16:58
(-0500) wrote:
TN Is there a standard way to deal with special
TN characters like (r), (c) etc in a CGI form and store the data in
TN an Oracle database?
what about HTML escaping ? You store them in db normally, show to
:
: Is there a standard way to deal with special characters like (r),
:(c) etc in a CGI form and store the data in an Oracle database?
:
If the characters are special to Oracle DBMS, I think Oracle DBMS may
provide some functions to deal with it.
HTH
--
Shu Cao [EMAIL PROTECTED
Hi all:
Here is my problem. I have a script which processes input from a
textarea which may have 'special characters' in it like or etc.
Unfortunately what I am getting back are these or respectively.
Script snippet start--
use CGI qw/:standard/;
print Content-type: text
Hi all:
Here is my problem. I have a script which processes input from a
textarea which may have 'special characters' in it like or etc.
Unfortunately what I am getting back are these or respectively.
Script snippet start--
use CGI qw/:standard/;
print Content-type: text
, this replacement is not made at all for those strange chars, but only
for and maybe a few others.
Teddy
- Original Message -
From: J. Alejandro Ceballos Z. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 28, 2003 7:58 PM
Subject: Re: Special characters
yes, I agree, in fact we should take care about observing the 3 digits
(#064; instead of #64;)
maybe something like
$cString =~ s/([\x7f-\xff])/'#'.ord($1).';'/ge;
will fix the matter.
In my experience, the numeric escapes where available seem to be more
universal between browsers.
--
Oh thank you.
I just wanted to make that regexp and it saved me the time.
Teddy
From: J. Alejandro Ceballos Z. [EMAIL PROTECTED]
Subject: Re: Special characters
yes, I agree, in fact we should take care about observing the 3 digits
(#064; instead of #64;)
maybe something like
$cString
that use special characters for foreign
languages (romanian), like staîâSTAÎÂ.
Please tell me what can I do to make them show right in the visitors'
browser.
I've seen that if I just print them, they appear like a question mark
instead (?).
I've seen that other sites can print them right and I don't know
but the keyboard keys are mapped to
other chars if I choose another language, but I see that it is not true.
- Original Message -
From: Camilo Gonzalez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 27, 2003 5:46 PM
Subject: Re: special characters
J.,
In my
I may try with nueric equivalents (like #046;) or htmlspecialchars() or
htmlentities()
Octavian Rasnita wrote:
Hi all,
I want to create some web pages that use special characters for foreign
languages (romanian), like staîâSTAÎÂ.
Please tell me what can I do to make them show right
, December 24, 2003 6:59 PM
Subject: Re: special characters
I may try with nueric equivalents (like #046;) or htmlspecialchars() or
htmlentities()
Octavian Rasnita wrote:
Hi all,
I want to create some web pages that use special characters for foreign
languages (romanian), like staîâSTAÎÂ
Hi all,
I want to create some web pages that use special characters for foreign
languages (romanian), like staîâSTAÎÂ.
Please tell me what can I do to make them show right in the visitors'
browser.
I've seen that if I just print them, they appear like a question mark
instead (?).
I've seen
On Tue, 23 Dec 2003 22:46:51 +0200
Octavian Rasnita [EMAIL PROTECTED] wrote:
I want to create some web pages that use special characters for foreign
languages (romanian), like staîâSTAÎÂ.
Please tell me what can I do to make them show right in the visitors'
browser.
I've seen that if I
Hi.
I'm very new to Perl and have a basic question. How can I convert special
characters contained in a string to hexadesimal numbers. I'm trying to
access a cgi program but the string I use with the post method contains
quote marks, question marks, etc. and the program crashes.
I have
Thanks Tim.
Your answer solves many problems to me. But I have a further question.
Sometimes a question mark apears in the middle of a string like that:
$string = /cgi-bin/search.pl?term=who?lang=english;
where who? is a unit and the question mark is part of it. Although I try
to escape the
Sometimes a question mark apears in the middle of a string like that:
$string = /cgi-bin/search.pl?term=who?lang=english;
where who? is a unit and the question mark is part of it. Although I try
to escape the question mark in who? and I get its hexadecimal number, I
don't get the expected
the contents as the
first string. However, I would like for things like . and \w to
search for those string literals, rather than for any character or any
word character, respectively. Is there some function or capability
which escapes all special characters in a string before it is passed
i don't want to just escape those characters. they were merely examples. i
was hoping maybe there was some built-in way to escape ALL the characters
that mean anything to regular expressions. it just seemed like a lot of
work to put a \ before all the characters that regular expressions
--- W P [EMAIL PROTECTED] wrote:
i don't want to just escape those characters. they were merely examples. i
was hoping maybe there was some built-in way to escape ALL the characters
that mean anything to regular expressions.
Well, technically, *all* characters mean something to a regex. I
Wouldn't single quotes do the trick?
Curtis Poe [EMAIL PROTECTED] wrote: --- W P wrote:
i don't want to just escape those characters. they were merely examples. i
was hoping maybe there was some built-in way to escape ALL the characters
that mean anything to regular expressions.
Well,
. However, I would like for things like . and \w
to search for those string literals, rather than for any character or any word
character, respectively. Is there some function or capability which escapes all
special characters in a string before it is passed to a regular expression?
22 matches
Mail list logo