Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11108

Re: json and non UTF8

X-FeedAbuse http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109
Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!nospam.fr.eu.org!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!weretis.net!feeder4.news.weretis.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="ISO-8859-1"
Message-ID <1651902.irdbgypaU6@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Fri, 04 Feb 2011 15:25:39 +0100
User-Agent KNode/4.4.7
Content-Transfer-Encoding 7Bit
Subject Re: json and non UTF8
Newsgroups comp.lang.php
References <iieeug$v8$1@news.albasani.net> <ousq18-kff.ln1@luuk.invalid.lan> <iifhtf$lpk$1@news.albasani.net>
Followup-To comp.lang.php
MIME-Version 1.0
Lines 19
NNTP-Posting-Date 04 Feb 2011 15:25:37 CET
NNTP-Posting-Host 61bef48b.newsspool1.arcor-online.net
X-Trace DXC=`d^li`BI[hLlU`@c^jLCbJic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBQYFIH;NC1NEDZm8W4\YJNLVf312h@^1ZK<ISkSeQYHXJ[a41``h9k?D
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.php:11108

Followups directed to: comp.lang.php

Show key headers only | View raw


Jeff Thies wrote:

> I'm working my way through Alvaros idea ["to make a conversion 
> from ISO-8859-15 to UTF-8 before calling json_encode() and/or a 
> conversion from UTF-8 to ISO-8859-15 after json_decode()"],
> although I don't quite understand how that works. That would seem
> to me to have to be done one character at a time.

You are mistaken.  There are iconv() and mb_detect_encoding() (whereas 
character _encoding_ is the proper term/approach to use here, _not_ 
character set).  RTF(ine)M.


PointedEars
-- 
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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