NYCPHP Meetup

NYPHP.org

[nycphp-talk] Converting the pesky MS Word quotes and other characters

Hans Zaunere lists at zaunere.com
Wed Oct 29 15:40:33 EDT 2008


> Has anyone on here found a viable solution?  Everything seems to work
> on the www side of things but as soon as i use the data in an RSS feed
> it does not seem to like the MS Word characters.

Word/etc always manages to create new and exciting chars, but the following
usually take care of most of them.

$this->Value = str_replace(array(chr(0x92),chr(0x93),
chr(0x94),chr(0x96),chr(0x97),chr(0x85)),
array('\'','"','"','-','-','...'),$this->Value);

H





More information about the talk mailing list