Re: serialize() and special ANSI characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just a guess:

You could perhaps run all your data through base64 encoding or
somesuch to be certain the characters to be serialized are all "nice"

On Mon, February 19, 2007 8:56 am, Youri LACAN-BARTLEY wrote:
> Hi all,
>
> I'm just curious to find out if I'm the only person to have bumped
> into
> this kind of issue with serialize/unserialize.
>
> When I try and serialize an array containing a string value with the
> "±"
> character (alt+241 ASCII) such as :
> 	"120GB 2X512MB 15.4IN DVD±RW VHP  FR"
>
> The resulting serialized array is truncated.
> ie. I would obtain :
>
> "a:17:{i:0;s:1:"A";i:1;s:7:"TOSHIBA";i:2;s:4:"3740";i:3;s:7:"404D862";i:4;s:31:"SATELLITE
> A100-044 CD/T2060-1.6";i:5;s:35:"120GB 2X512MB 15.4IN DVD"
>
> As you can see serialization seems to stall as soon as the "±"
> character
> shows up.
>
> Do any of you have the same issue? And what could be a work around for
> this sort of problem.
>
> This has occurred on a Windows XP box running PHP 5.2.0. The string is
> obtained from a CSV file using ANSI encoding.
>
> Thanks,
>
> Youri
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux