[PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Russell P Jones

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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Hank TT
I don't know how MS encodes its smart quotes but there are certainly
Unicode-compliant equivalents:
http://www.alanwood.net/unicode/general_punctuation.html

And XML is friendly to utf-8 (assuming you do want utf-8).


- Original Message -
From: Russell P Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 04, 2003 12:03 AM
Subject: [PHP] 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



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Justin French
Identify common problematic characters, and develop a function (series 
of str_replace()'s) to convert them to suit.

Over time, you can always add to this function as you spot more 
problematic characters.

Also look at something like Tidy (see archives in the last week where 
it was discussed with the subject tags to lowercase).

Justin



On Monday, August 4, 2003, at 02:03  PM, Russell P Jones wrote:

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...


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Tom Rogers
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php