Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3618 | major | always | 08-03-09 06:40 | 03-11-13 18:22 | |
|
|||||
Reporter: | tlandmann | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.2 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.36 | ||
|
|||||
Summary: | 0003618: Character Encoding incompatibility with standard PHP | ||||
Description: |
The following incompatibility is also present in version 4.0.0: Attached you find three PHP files, all of which are UTF-8 encoded: - test4_db.php: Encapsulates database connection credentials (please edit first in order to reflect your correct database connection settings). - test4_prep.php: Creates a new database and table in preparation to run the actual test. Should be run only once and only from standard PHP to see the results described below. - test4.php: Runs the actual test. Should be run separately from standard PHP and from Quercus. -> Results are different in both engines - which is the problem. Standard PHP output: äöüáéóú Quercus output: &65533;&65533;&65533;&65533;&65533;&65533; Effect: Drupal doesn't run properly if you use special characters in (for instance) node titles. ----------------- What seems to be happening: At some stage Quercus seems to assume to be handling ISO-8859-1 strings although: - The sources are UTF-8. - The database tables are UTF-8. - In test4_db.php we explicitely instructed the DB connection to use UTF-8. Nobody ever gives any sign there could be ISO strings, yet Quercus somewhere seems to handle them as such. In Resin 3.2 I would've tried to change the database driver settings now. However, in Resin 4.0.0 Quercus is pre-configured (which is a great thing), and I would like to keep it this way. I think the default behaviour should be that Quercus is 100% compatible with PHP just "as is" without any special configuration. (You even claim that on your website.) I hope I didn't miss anything on that issue. I checked the wikis and manuals for setting up Drupal as well as database configuration, previous error resports etc. (I only found this: http://maillist.caucho.com/pipermail/resin-interest/2008-April/002405.html [^] It doesn't help though, since there is no manual Quercus Servlet configuration any more.) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: | quercus_charencoding_incompatibility.zip [^] (1,049 bytes) 08-03-09 06:40 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|