View Issue Details

IDProjectCategoryView StatusLast Update
0005797OXID eShop (all versions)3.2. HTML, CSS, JavaScriptpublic2024-01-24 15:51
Reporterleofonic Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.8.6 / 5.1.6 
Fixed in Version6.0.0 
Summary0005797: Encoding is not correct in ajax calls when shop is not utf-8
DescriptionIf 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 Reproduce1. Search for "jeans ΓΌΓΌ" in demoshop.
2. Click on Jeans Anna and change variant several times.
3. Click on "compare", searchstring is now garbled.
TagsUTF-8
Attached Files
2014-06-26_0937.png (224,015 bytes)   
2014-06-26_0937.png (224,015 bytes)   
Theme
BrowserAll
PHP VersionNot defined
Database VersionNot defined

Activities

sebastian.bauer

2017-03-22 08:48

reporter   ~0012001

It is not reproducable in version 5.3 (with utf8 mode or not), so we close this one

leofonic

2017-04-06 16:43

reporter   ~0012032

Just reproduced it in 4.10.3

QA

2017-04-07 10:19

administrator   ~0012033

Please provide the Browser and OS platform where the error is produced.

leofonic

2017-04-07 10:50

reporter   ~0012034

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.

SvenBrunk

2024-01-24 15:50

administrator   ~0016189

Setting the shop to non-UTF-8 mode is now no longer possible.