FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » json and non UTF8
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: json and non UTF8 [message #172188 is a reply to message #172185] Thu, 03 February 2011 15:08 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 03/02/2011 15:43, Jeff Thies escribió/wrote:
> I've got some text that contains some odd characters that json_encode is
> returning nulls on. I'd like to either fix the characters, get rid of
> them or anything that doesn't give me a null.

Do you mean this?

$input = str_replace(chr(0), '', $input);


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IE8 crashes when back button clicked after sending email from PHP script
Next Topic: Help with my website
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 00:07:21 GMT 2024

Total time taken to generate the page: 0.04512 seconds