View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005797 | OXID eShop (all versions) | 3.2. HTML, CSS, JavaScript | public | 2014-06-20 19:46 | 2024-01-24 15:51 |
Reporter | leofonic | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.6 / 5.1.6 | ||||
Fixed in Version | 6.0.0 | ||||
Summary | 0005797: Encoding is not correct in ajax calls when shop is not utf-8 | ||||
Description | If the shop uses ISO encoding, input from XHR is not treated correctly as it is always encoded utf-8 and shop cannot handle utf-8. As it is not possible to change this in most ajax requests, encoding should be converted server-side: if shop is not utf-8 and request is XHR, look for all strings in GET and POST vars and decode them with utf8_decode. This could maybe be done in bootstrap.php to handle normal and widget calls. | ||||
Steps To Reproduce | 1. Search for "jeans ΓΌΓΌ" in demoshop. 2. Click on Jeans Anna and change variant several times. 3. Click on "compare", searchstring is now garbled. | ||||
Tags | UTF-8 | ||||
Attached Files | |||||
Theme | |||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
It is not reproducable in version 5.3 (with utf8 mode or not), so we close this one |
|
Just reproduced it in 4.10.3 |
|
Please provide the Browser and OS platform where the error is produced. |
|
Win 10/chrome, shop in iso mode, but this should be reproducable in every browser. Here's a short video: https://www.youtube.com/watch?v=dQGfI0rLAV8 This just shows how to reproduce, the encoding problem is also present in other ajax calls. |
|
Setting the shop to non-UTF-8 mode is now no longer possible. |