Ask a Question related to PHP Development, Design and Development.
-
Russell P Jones #1
Invalid Characters, XML...
Im using PHP to write to XML files, but I am having some problems. A lot
of users are cutting and pasting content from text editors like word,
which uses odd quotation marks, dashes, etc. which PHP writes to the XML
file, and then the XML parser does not under stand. Is there a
stripslashes() or htmlspecialchars() equivalent that will convert this
kind of stuff to the correct ascii text?
Russ
Russell P Jones Guest
-
error invalid characters in my cfquery?
The list. What is that datatype your passing the list to? Is it an numeric based or string? If it is a string (char, varchar, ntext, nvarchar,... -
Using Invalid Characters
I am using MS SQL for my ASP application and have several 'comments' fields. Obviously in these fields users are going to enter invalid characters... -
Matching invalid characters in a URL
I'm trying to throw out URLs with any invalid characters in them, like '@". According to http://www.ietf.org/rfc/rfc1738.txt : Thus, only... -
#25405 [Opn->Bgs]: The session id contains invalid characters
ID: 25405 Updated by: iliaa@php.net Reported By: pop501 at hotmail dot com -Status: Open +Status: ... -
[PHP] Invalid Characters, XML...
Here's what I have been using. $trans= array("'" => "'", "'" => "'",">" => ">", "<" => "<", "&" => "&","-" => "-", "°" => "°", "±" => "±", "-"... -
Russell P Jones #2
Clarification..... UTF-8 Enccoding .....
Any idea on how to get rid of Windows chracters. I have paroblem with
users cutting and pasting out of Microsoft Word into textarea's and
input-boxes and the special characters like quotations and apostrophes
messing up the xml...
Thanks
Russ
Russell P Jones Guest
-
Tom Rogers #3
Re: [PHP] Clarification..... UTF-8 Enccoding .....
Hi,
Monday, August 4, 2003, 2:03:57 PM, you wrote:
RPJ> Any idea on how to get rid of Windows chracters. I have paroblem with
RPJ> users cutting and pasting out of Microsoft Word into textarea's and
RPJ> input-boxes and the special characters like quotations and apostrophes
RPJ> messing up the xml...
RPJ> Thanks
RPJ> Russ
I do this before feeding it to xml
$description = iconv("ISO-8859-1","UTF-8",$description);
--
regards,
Tom
Tom Rogers Guest



Reply With Quote

