View Issue Details

IDProjectCategoryView StatusLast Update
0002625OXID eShop (all versions)4.06. Language and translationspublic2011-03-22 15:04
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version4.5.0_beta4 
Summary0002625: changing charset in view is not posible
Descriptionthere is oxView::getCharSet() function and oxView::$_sCharSet variable implemented, but if i write module for these, or write new view, charset is not changed in fronted, as in oxShopControl::_process() charset is taken like this:
        // #M1047 Firefox duplicated GET fix
        $myUtils->setHeader( "Content-Type: text/html; charset=".oxLang::getInstance()->translateString( 'charset' ) );

my suggestion is to use $oViewObject and implemented functions. so result will be like this:
        // #M1047 Firefox duplicated GET fix
        $myUtils->setHeader( "Content-Type: text/html; charset=".$oViewObject->getCharSet() );


also same bug in oxAdminView::addGlobalParams line 0000337:0000211
$this->_aViewData['charset'] = $oLang->translateString( 'charset' );
should be changed to:
$this->_aViewData['charset'] = $this->getCharSet();
TagsNo tags attached.
PHP Versionany
Database Versionany



2011-03-22 15:04

reporter   ~0004247

fixed, also unified oxView getter usage in smarty modifier oxescape