sdlcshf 发表于 2006-8-3 14:49:03

请问朋友们TYPO3系统恢复后为什么前台显示乱码?

我将系统生新安装后,TYPO3文件没动,运行环境恢复后,Typo3能够正常运行,但是就是前台出现乱码而后台没问题,请问大家如何解决?谢谢!!!

hahahaha78 发表于 2006-8-4 09:04:30

修改一下\typo3\sysext\cms\tslib\class.tslib_fe.php文件,将ISO-8859-1换成GB2312

                // Character set (charset) conversion object:
        var $csConvObj;                                                // An instance of the "t3lib_cs" class. May be used by any application.
       var $defaultCharSet = 'gb2312';        // The default charset used in the frontend if nothing else is set.
        var $renderCharset='';                                // Internal charset of the frontend during rendering: Defaults to "forceCharset" and if that is not set, to ->defaultCharSet
        var $metaCharset='';                                // Output charset of the websites content. This is the charset found in the header, meta tag etc. If different from $renderCharset a conversion happens before output to browser. Defaults to ->renderCharset if not set.
        var $localeCharset='';                                // Assumed charset of locale strings.

[ 本帖最后由 hahahaha78 于 2006-8-4 16:56 编辑 ]

hiworld 发表于 2006-8-4 16:01:45

原帖由 hahahaha78 于 2006-8-4 09:04 发表
typo3\sysext\cms\tslib\class.tslib_fe.php文件中修改一下代码,将ISO-8859-1换成GB2312

                // Character set (charset) conversion object:
        var $csConvObj;                                 ...

修改代码?一般不必这么做吧.不推荐.

hahahaha78 发表于 2006-8-4 16:55:42

偶不知道其它方法,只用这个方法,呵呵!!!

hahahaha78 发表于 2006-8-4 16:57:21

原帖由 hiworld 于 2006-8-4 16:01 发表


修改代码?一般不必这么做吧.不推荐.

打错了!!!:lol

有其它方法吗????????请指教

hiworld 发表于 2006-8-4 22:09:13

通过设置后台install里面的forcecharset 设置成所需要的编码就成.此外不知还有无其它方法没有.

hahahaha78 发表于 2006-8-5 10:28:08

原帖由 hiworld 于 2006-8-4 22:09 发表
通过设置后台install里面的forcecharset 设置成所需要的编码就成.此外不知还有无其它方法没有.


这个好像是只设后台的吧!

偶设过!!!!!!

luxee 发表于 2006-11-28 02:54:54

我用4.0.2添加一个中文标题的新的页面,但是显示在后台树型列表框里的全都是乱码。请问如何解决?

hahahaha78 发表于 2006-11-28 09:08:44

启用后台中文语言包,或在设置中forcecharset 为UTF-8或GB2312
页: [1]
查看完整版本: 请问朋友们TYPO3系统恢复后为什么前台显示乱码?