Caucho Forums  

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

Go Back   Caucho Forums > Quercus

Thread Tools Display Modes
Old 05-22-2013, 08:26 AM
EricESCP EricESCP is offline
Junior Member
Join Date: Dec 2012
Posts: 4
Default Liferay/Quercus/sample PHP portlet: POST data encoding problem


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 ?


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

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
Old 06-04-2013, 08:31 AM
EricESCP EricESCP is offline
Junior Member
Join Date: Dec 2012
Posts: 4


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

Reply With Quote

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 08:58 AM.

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