View Issue Details

IDProjectCategoryView StatusLast Update
0005015OXID eShop (all versions)4.06. Language and translationspublic2015-01-27 18:08
ReporterDSB Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version4.7.3 / 5.0.3 revision 54408 
Target Version4.9.4 / 5.2.4 
Summary0005015: oxLang->_recodeLangArray() only encodes into utf-8
DescriptionWhen 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
TagsI18N, Languages, UTF-8
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0003998 closedflorian.auer provide lang files in UTF-8 

Activities

florian.auer

2015-01-27 18:08

reporter   ~0010644

PO decision: Closing this as "won't fix", as the shop's default is UTF-8 now and we are heading towards UTF-8 only.