View Single Post
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_2.jpg
File Type: jpg quercus_post_data_1.jpg
Reply With Quote