[FX.php List] Extra content at the end of the document

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Oct 29 01:27:06 MDT 2008


It's usually not a problem as long as you use UTF-8 in the header of
your HTML output...

But there might be exceptions

ggt667

2008/10/28 Tim 'Webko' Booth <tim at nicheit.com.au>:
>
> On 29/10/2008, at 6:49 AM, Steve Winter wrote:
>
>> Valid conclusion, suspect incorrectly encoded characters in the field with
>> the largest amount of data probably generated by someone doing a copy and
>> paste from word...
>
> Yep, I'd support that - smart quotes and the like have caused me a lot of
> problems over time. You can set the database to not use them, but pasting in
> stuff from Word seems to get around that.
>
> Try running the output through a replace function to strip them... Off the
> top of my head, something like
>
> function convert_smart_quotes($string)
> {
>    $search = array(chr(145),
>                    chr(146),
>                    chr(147),
>                    chr(148);
>
>    $replace = array("'",
>                     "'",
>                     '"',
>                     '"');
>
>    return str_replace($search, $replace, $string);
> }
>
> Cheers
>
> Webko
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list