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 05-22-2013, 09:26 AM
EricESCP EricESCP is offline
Junior Member
 
Join Date: Dec 2012
Posts: 4
Default Liferay/Quercus/sample PHP portlet: POST data encoding problem

Hello,

Our setup:
Tomcat6 + Liferay 6.1 + quercus.jar and script-10.jar in tomcat/lib/ext +sample php portlet.
This basic php portlet displays a form with an input text, using POST method.

It seems that the POST data encoding is wrong.
If $_POST["foo"]="ייי", echo $_POST["foo"] shows wrongly encoded characters, utf8_encode($_POST["foo"]) shows the correct text ("ייי " ).
(the whole web page is utf8).

The problem occurs with both quercus 4.0.25 and 4.0.35.

Obviously we cannot manually encode all POST data in our PHP scripts.
Is there any way to fix this ? Is this related to Quercus or Liferay ?

Thanks,

Eric.
Attachments Pending Approval
File Type: jpg quercus_post_data_2.jpg
File Type: jpg quercus_post_data_1.jpg
Reply With Quote
  #2  
Old 05-29-2013, 09:15 AM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi Eric,

Is the browser sending correctly utf8-encoded characters? The Firefox plugin "Live HTTP Headers" will show you exactly what was sent by the POST.
Reply With Quote
  #3  
Old 06-04-2013, 09:31 AM
EricESCP EricESCP is offline
Junior Member
 
Join Date: Dec 2012
Posts: 4
Default

Hi,

Actually it was a Liferay "bug".
They released a hotfix for the EE version that corrects the problem.

Thanks
Reply With Quote
Reply

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 03:12 PM.


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