Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1961 | minor | always | 08-22-07 03:29 | 09-04-07 12:10 | |
|
|||||
Reporter: | bago | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | 3.1.1 | Resolution: | fixed | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
Summary: | 0001961: non US-ASCII chars inside comments results in a failure (BIS) | ||||
Description: |
Sorry for the duplicate submission, but you closed my previous report without leaving me the time to provide you an answer to your comment. You wrote: --------------------- Quercus by default reads scripts in UTF-8. If a character is not valid UTF-8, then it reports an error. To change the default encoding, set the following in your resin-web.xml: <web-app xmlns="http://caucho.com/ns/resin"> [^] [^] <servlet-mapping url-pattern="*.php" servlet-class="com.caucho.quercus.servlet.QuercusServlet"> <init> <script-encoding>ISO-8859-15</script-encoding> </init> </servlet-mapping> </web-app> For 3.1.3, we will allow the option to set unicode.semantics to off. Quercus will assume the default charset is ISO-8859-1 in all cases. ------------------- Adding the script-encoding was the first thing I did when I got the first errors in drupal. In the same drupal I have: 1) One file unicode.inc that does not have any unicode header, but contains php strings with unicode sequences. 2) At least one file (e.g: liquid.module) that contains iso-8859-15 encoded chars in *comments* The official php interpreter have no problem with such a scenario. Instead if I use quercus without the script-encoding I get an error loading liquid.module, if instead I use quercus with the script-encoding I get a wrong string from the unicode.inc file. If you want to ignore such a difference between official PHP and Quercus, then I'm fine, but I think this deserve documentation as at least people running drupal and using additional modules will find similar problems. I have many similar problems related to unicode, and I'm trying to understand how exactly quercus works differently from PHP (e.g: when I don't use script-encoding I get a lot of errors when posting non US-ASCII content in forms that save content to mysql). |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|