Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2013, 02:43 PM
tobia tobia is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Default json_decode and json_encode with unicode semantics

In my other thread I asked for help in passing UTF-8 data to/from PDO without enabling unicode semantics.

If I do enable unicode semantics, the DB interface works flawlessly, but other things break.

One of them is json_decode(), which produces horribly double-encoded UTF-8 data. I have yet to test json_encode(), but I expect a similar failure.

Is there a way to make these things work with unicode semantics turned on? Or is the entire unicode semantics setting discouraged?
Reply With Quote
  #2  
Old 01-04-2014, 08:40 AM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi,

What version of Quercus are you on? For the upcoming 4.0.39, I changed how Quercus handles unicode to binary string comparisons so that less things "break" when you turn on unicode.semantics.
Reply With Quote
Reply

Tags
json, json_decode, unicode, utf8

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.