View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005015 | OXID eShop (all versions) | 4.06. Language and translations | public | 2013-03-22 14:20 | 2015-01-27 18:08 |
Reporter | DSB | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Product Version | 4.7.3 / 5.0.3 revision 54408 | ||||
Target Version | 4.9.4 / 5.2.4 | ||||
Summary | 0005015: oxLang->_recodeLangArray() only encodes into utf-8 | ||||
Description | When loading language files a conversion to utf-8 is made when the shop is in utf mode. If not, the language file is not converted and is taken as it is. This leads to incorrectly encoded chars if the shop is not installed in utf mode but language files are included, that are encoded in utf-8. Todo: Refactor oxLang->_getLanguageFileData and _recodeLangArray() to detect the source and target encoding and convert from source into target encoding if they differ. | ||||
Steps To Reproduce | - Install a shop without ticking the utf-8 box - add a module which has a lang file encoded in utf-8 and has set charset="utf-8" or change encoding of an excisting file to utf-8 (don't forget to clear the tmp folde ;) ) - have fun with wrong encoded chars in output | ||||
Tags | I18N, Languages, UTF-8 | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0003998 | closed | florian.auer | provide lang files in UTF-8 |