Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for json encode utf8 error

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Sep 8, 2016 at 14:48 comment added jar hm are you sure that the is what you think it is? Just copy-pasting what you typed above it's a different UTF8 entity than \u0092 hexutf8.com/?q=c382e28099c292
May 14, 2015 at 10:14 review Close votes
May 18, 2015 at 0:01
May 13, 2015 at 18:01 answer added Lithis timeline score: 0
May 13, 2015 at 1:07 comment added mohamed amine hamza if found helpful function here stackoverflow.com/a/29667430/3479609
May 13, 2015 at 1:03 comment added mohamed amine hamza it's create error 'Detected an incomplete multibyte character in input string ' which lead me to this article stackoverflow.com/questions/26092388/… which has function that i have been looking for
May 12, 2015 at 18:09 answer added Ulrich Eckhardt timeline score: 2
May 12, 2015 at 17:52 comment added Deadooshka why not simply json_encode(iconv('UCS-4LE','UTF-8', $text))?
May 12, 2015 at 16:29 comment added mohamed amine hamza @Halcyon my input is object i use this function for utf8 encode function utf8ize($mixed) { if (is_array($mixed) ) { foreach ($mixed as $key => $value) { $mixed[$key] = utf8ize($value); } } else if (is_object($mixed)) { foreach ($mixed as $key => $value) { $mixed->$key = utf8ize($value); } } else if (is_string ($mixed)) { return utf8_encode($mixed); } return $mixed; }
May 12, 2015 at 16:26 comment added Halcyon What is your input encoding? Can you convert to utf8 before json_encode?
S May 12, 2015 at 16:25 review Triage
May 12, 2015 at 16:34
S May 12, 2015 at 16:25 history asked mohamed amine hamza CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /