Re: [PHP] Special Characters in a String for Output

2009-08-27 Thread Bastien Koert
On Thu, Aug 27, 2009 at 9:56 AM, David Stoltz wrote: > I have: > > $goalString = "Goals Entered By ".$mymanager."On > ".$when.":".$mygoal.""; > > Which outputs in this tag: > > > > But if there are double or single quotes in any of the $goalString, it > messes up the output. > > I know this i

Re: [PHP] Special characters

2005-05-16 Thread Brian V Bonini
On Mon, 2005-05-16 at 12:23, Carlos Palomino wrote: > Hi everyone, > I have just begun writing PHP web-pages and I have come across an interesting > issue. > Whenever I use special characters within my code such as: a "©", the > character > displays as a "?". Because that's not valid HTML... S

Re: [PHP] special characters

2002-08-10 Thread Justin French
Have a look at htmlspecialchars() as well. If these don't meet your needs, you might have to start building your own function to extend what htmlspecialchars() and htmlentities() do. Justin French on 10/08/02 4:58 AM, Jeb A. Scarbrough (home) ([EMAIL PROTECTED]) wrote: > Is there a way to hav

Re: [PHP] special characters

2002-08-09 Thread Analysis & Solutions
On Fri, Aug 09, 2002 at 02:58:26PM -0400, Jeb A. Scarbrough (home) wrote: > > a) strip out any non-standard ascii characters (like the TM or > copyright symbol) preg_replace() or ereg_replace(). > b) have PHP encode all these symbols. > > I know about htmlentities, but it not catch everythi

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-24 Thread Christian Reiniger
On Saturday 24 February 2001 07:49, Mitchell Hagerty wrote: > The special character I'm concerned with at the moment is the back tick > ` which mysql doesn't like on an insert. I was looking for a way not to > parse the entire file evertime I inserted or extracted them from the > database. Its sim

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Mitchell Hagerty
The special character I'm concerned with at the moment is the back tick ` which mysql doesn't like on an insert. I was looking for a way not to parse the entire file evertime I inserted or extracted them from the database. Its simple enough todo in perl and php just seems like it would burn al

RE: [PHP] special characters with perl,mysql,php

2001-02-23 Thread ..s.c.o.t.t..
i use a regexp to slash-out single quotes for inclusion into an SQL query: // quote a value to make it appropriate for inclusion in an SQL string function db_quote($value) { return ereg_replace("'","\\'",$value); } > -Original Message- > From: Mitchell Hagerty [mailto:[EMAIL PROTECTE

Re: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Kyndig
If your refering to: ' or " just use: addslashes($value); to escape special characters. On Fri, 23 Feb 2001, Mitchell Hagerty wrote: > Hey All, > > What would be a good method for inserting data into a blob field > that contained special characters using perl then retrieving that > data

Re: [PHP] special characters with perl,mysql,php

2001-02-23 Thread Joe Stump
What type of special characters? --Joe On Fri, Feb 23, 2001 at 08:54:09PM -0600, Mitchell Hagerty wrote: > Hey All, > > What would be a good method for inserting data into a blob field > that contained special characters using perl then retrieving that > data with php? > > URI::Escape has work

Re: [PHP] Special Characters

2001-01-12 Thread Alex Black
eh? check out htmlspecialchars() (I think that's right, from memory) it basically lets you fuggeddaboutit. -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433