note 116797 added to function.str-replace

From: Date: Mon, 02 Mar 2015 08:59:39 +0000
Subject: note 116797 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-201834@lists.php.net to get a copy of this message
jSON Turkish Characters Problem - (PHP < 5.4 for example) <?php function json_decode_tr($json){ $json_char = array("u00e7","u0131","u00fc","u011f","u00f6","u015f","u0130","u011e","u00dc","u00d6","u015e","u00c7"); $turkish = array("ç","ı","ü","ğ","ö","ş","İ","Ğ","Ü","Ö","Ş","Ç"); $result = str_replace($json_char, $turkish, $json); return json_decode($json); } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 78.177.85.202 ---- Manual Page -- http://php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/116797 Del: integrated -- https://master.php.net/note/delete/116797/integrated Del: useless -- https://master.php.net/note/delete/116797/useless Del: bad code -- https://master.php.net/note/delete/116797/bad+code Del: spam -- https://master.php.net/note/delete/116797/spam Del: non-english -- https://master.php.net/note/delete/116797/non-english Del: in docs -- https://master.php.net/note/delete/116797/in+docs Del: other reasons-- https://master.php.net/note/delete/116797 Reject -- https://master.php.net/note/reject/116797 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201834) next »