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


Groups > comp.lang.php > #11108

Re: json and non UTF8

Message-ID <1651902.irdbgypaU6@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2011-02-04 15:25 +0100
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

Followups directed to: comp.lang.php

Show all headers | 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