View Issue Details

IDProjectCategoryView StatusLast Update
0002625OXID eShop (all versions)4.06. Language and translationspublic2011-03-22 15:04
Reporterwanis Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Fixed 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:
[code]
        // #M1047 Firefox duplicated GET fix
        $myUtils->setHeader( "Content-Type: text/html; charset=".oxLang::getInstance()->translateString( 'charset' ) );

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

[/code]

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

Activities

alfonsas_cirtautas

2011-03-22 15:04

reporter   ~0004247

fixed, also unified oxView getter usage in smarty modifier oxescape