Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11015
| Path | csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Date | Thu, 03 Feb 2011 16:07:39 +0100 |
| From | Luuk <Luuk@invalid.lan> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en_US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.php |
| Subject | Re: json and non UTF8 |
| References | <iieeug$v8$1@news.albasani.net> |
| In-Reply-To | <iieeug$v8$1@news.albasani.net> |
| X-Enigmail-Version | 1.1.1 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <ousq18-kff.ln1@luuk.invalid.lan> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 80.101.116.74 |
| X-Trace | 1296745657 news.xs4all.nl 81481 [::ffff:80.101.116.74]:36140 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.php:11015 |
Show key headers only | View raw
On 03-02-11 15:43, Jeff Thies 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.
>
> Jeff
Can you give more detail on this 'odd characters'?
Maybe show them here with bin2hex()?
i.e. print bin2hex('abcdef');
616263646566
And in the subject you state 'non UTF8'
In the docs of 'json_encode' i read:
"This function only works with UTF-8 encoded data"
--
Luuk
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
Re: json and non UTF8 Luuk <Luuk@invalid.lan> - 2011-02-03 16:07 +0100
Re: json and non UTF8 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-02-04 15:25 +0100
Re: json and non UTF8 Jeff Thies <jeff_thies@att.net> - 2011-02-03 19:40 -0500
Re: json and non UTF8 "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-02-04 12:31 +0100
Re: json and non UTF8 Luuk <Luuk@invalid.lan> - 2011-02-04 12:52 +0100
Re: json and non UTF8 Luuk <Luuk@invalid.lan> - 2011-02-04 11:53 +0100
csiph-web