[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TYPO3-english] realurl in Unicode with _DOMAINS config



Hi,

I am running realurl 1.11.1 (great ext, thanks Dimitry!) with TYPO3
4.3.11/Apache2.2/MySQL5/PHP5.2.9 on a Windows 2003 server. It seems that
with _DOMAINS feature, 'enableAllUnicodeLetters' does not work completely.
No problem for the other languages, Greek included.

Live web site here in Chinese simplified: http://cn.topsolid.com 

Example of problem
http://cn.topsolid.com/%E4%BA%A7%E5%93%81/%E5%B7%A5%E4%B8%9A%E8%A7%A3%E5%86%
B3%E6%96%B9%E6%A1%88.htm

I can see that when using prevars without _DOMAINS, it seems to work here on
that site:
http://www.leica-microsystems.com/jp/%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9/%E
3%83%97%E3%83%AC%E3%82%B9%E3%83%AA%E3%83%AA%E3%83%BC%E3%82%B9/

Is this bug related?
http://bugs.typo3.org/view.php?id=16899

Everything is in UTF-8 (Apache, Mysql, TYPO3). I have seen that
config.locale_all has a great influence on the problem. I have tested
several values defined here
(http://msdn.microsoft.com/en-us/library/39cwe7zf%28vs.71%29.aspx)  without
any results.

My config:
TS:
config.linkVars = L
config.uniqueLinkVars = 1

config.metaCharset = utf-8
config.renderCharset = utf-8
config.additionalHeaders = Content-Type:text/html;charset=utf-8
config.xhtml_cleaning = all

config.sys_language_mode = content_fallback
config.sys_language_overlay = hideNonTranslated
...
[globalVar = GP:L = 7]
config.language = cn
config.locale_all = chinese-simplified
config.sys_language_uid = 7
config.baseURL = http://cn.topsolid.com/
config.htmlTag_langKey = zh-CN
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 7
...


realurl:
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
'_DEFAULT' => array(
    'init' =>   array (
      'enableCHashCache' => true,
          'useCHashCache' => '0',
      'appendMissingSlash' =>  'ifNotFile',
      'adminJumpToBackend' => true,
      'enableUrlDecodeCache' => true,
      'enableUrlEncodeCache' => true,
      'emptyUrlReturnValue' => '/',
        'enableAllUnicodeLetters' => true,
      //'postVarSet_failureMode' => 'redirect_goodUpperDir',
      'doNotRawUrlEncodeParameterNames' => 1,
      'respectSimulateStaticURLs' => 0,
    ),

'preVars' => array(

    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => 0,
            'fr' => 1,
                        'de' => 2,
                        'it' => 3,
                        'es' => 4,
                        'gr' => 5,
                        'br' => 6,
                        'cn' => 7,
                        'pl' => 8,
                        'hu' => 9,
        ),
        'valueDefault' => 'en',
        'noMatch' => 'bypass',
    ),
),

'postVarSets' => array(
                        '_DEFAULT' => array(
                                
                                // news archive parameters
                                'archive' => array(
                                        array(
                                                'GETvar' =>
'tx_ttnews[year]' ,
                                                ),
                                        array(
                                                'GETvar' =>
'tx_ttnews[month]' ,
                                                'valueMap' => array(
                                                        'january' => '01',
                                                        'february' => '02',
                                                        'march' => '03',
                                                        'april' => '04',
                                                        'may' => '05',
                                                        'june' => '06',
                                                        'july' => '07',
                                                        'august' => '08',
                                                        'september' => '09',
                                                        'october' => '10',
                                                        'november' => '11',
                                                        'december' => '12',
                                                        )
                                                ),
                                        ),
                                // news pagebrowser
                                'browse' => array(
                                        array(
                                                'GETvar' =>
'tx_ttnews[pointer]',
                                                ),
                                        ),
                                // news categories
                                'category' => array (
                                        array(
                                                'GETvar' =>
'tx_ttnews[cat]',
                                                ),
                                        ),
                                // news articles and searchwords
                                
                                'article' => array(
                                        array(
                                                'GETvar' =>
'tx_ttnews[tt_news]',
                                                'lookUpTable' => array(
                                                        'table' =>
'tt_news',
                                                        'id_field' => 'uid',
                                                        'alias_field' =>
'title',
                                                        'addWhereClause' =>
' AND NOT deleted',
                                                        'languageGetVar' =>
'L',
        
'languageExceptionUids' => '',
                                                        'languageField' =>
'sys_language_uid',
        
'transOrigPointerField' => 'l18n_parent',
                                                        'autoUpdate' => 1,
                                                        'expireDays' => 1,
                                                        'useUniqueCache' =>
1,
        
'useUniqueCache_conf' => array(
                                'strtolower' => 1,
                                'spaceCharacter' => '-',
                                                        ),
                                                ),
                                        ),
                                ),
                                
                                ),
                        ),

    'pagePath' =>   array (
      'type' => 'user',
      'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title',
      'languageGetVar' => 'L',
      'rootpage_id' => 2,
      'expireDays' => 1,
          'disablePathCache' => true,

      //'excludePageIds'    => null,
      //'autoUpdatePathCache' => true,
    ),
    
    'fileName' =>   array (
      'defaultToHTMLsuffixOnPrev' =>  '.htm',
      'acceptHTMLsuffix' => 0,
    ),
  ),

  '_DOMAINS' => array(
        'encode' => array(
            array(
                'GETvar' => 'L',
                'value' => '0',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.com',
            ),
            array(
                'GETvar' => 'L',
                'value' => '1',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.fr',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '2',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.de',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '3',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.it',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '4',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.es',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '5',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://www.topsolid.gr',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '6',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://br.topsolid.com',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '7',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://cn.topsolid.com',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '8',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://pl.topsolid.com',
            ),
                        array(
                'GETvar' => 'L',
                'value' => '9',
                'ifDifferentToCurrent' => true,
                'useConfiguration' => '_DEFAULT',
                'urlPrepend' => 'http://hu.topsolid.com',
            ),
        ),
        'decode' => array(
            'www.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '0',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
            'www.topsolid.fr' => array(
                'GETvars' => array(
                    'L' => '1',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'www.topsolid.de' => array(
                'GETvars' => array(
                    'L' => '2',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'www.topsolid.it' => array(
                'GETvars' => array(
                    'L' => '3',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'www.topsolid.es' => array(
                'GETvars' => array(
                    'L' => '4',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'www.topsolid.gr' => array(
                'GETvars' => array(
                    'L' => '5',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'br.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '6',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'cn.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '7',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'pl.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '8',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
                        'hu.topsolid.com' => array(
                'GETvars' => array(
                    'L' => '9',
                ),
                'useConfiguration' => '_DEFAULT',
            ),
        ),
),
);
?>

Many thanks if someone has an idea.

Regards

David 



_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english