简体   繁体   English

我如何转换在typo3后端编辑器中从tt_content.bodytext列获取的特殊字符?

[英]How I convert special characters fetched from tt_content.bodytext column in typo3 backend editor?

Typo3 stores webpage content in tt_content table having charset utf-8 . Typo3将网页内容存储在具有字符集utf-8的 tt_content表中。 In mycase it is stored in hungarian language. 在我的情况下,它以匈牙利语存储。 In tt_content.bodytext column special characters are stored.Hence same untranslated characters are being rendered in webpage. tt_content.bodytext列中存储了特殊字符。因此,相同的未翻译字符也会在网页中呈现。

Ex : ó to be converted to é 例如 :ó将转换为é

I have tried with changing setLocale to utf-8 in Localconfiguration.php file. 我尝试在Localconfiguration.php文件中将setLocale更改为utf-8 But not getting the result. 但没有得到结果。 ried various solutions from google but no success. google提出了各种解决方案,但没有成功。

I am really new to typo3 6.2. 我真的是Typo3 6.2的新手。 . Please guide me step by step to overcome this issue. 请逐步指导我解决此问题。

Thanks in advance. 提前致谢。

Since TYPO3 6.0 all data from and to database must be utf-8 on all levels. 从TYPO3 6.0开始,在所有级别上,往返数据库的所有数据都必须为utf-8。
Have a view into your database to see whether your text fields, your database and your database connection is utf-8. 查看数据库,以查看您的文本字段,数据库和数据库连接是否为utf-8。

Make sure all transfer to and from database outside from TYPO3 is done with utf-8. 确保使用utf-8完成从TYPO3到数据库之间的所有来回传输。

These wrong character encodings often were problems when the encodings does not match. 当编码不匹配时,这些错误的字符编码通常会成为问题。
since 6.0 TYPO3 always uses utf-8 database connection although the data fields can be Iso-something declared. 由于6.0 TYPO3总是使用utf-8数据库连接,尽管数据字段可以声明为“异物”。 Aside from the missing space for two or three byte utf-8 characters, you get trash characters if interfering with the database with other software which uses only the declared encoding. 除了缺少两个或三个字节的utf-8字符的空间外,如果使用仅使用声明的编码的其他软件干扰数据库,则会得到垃圾字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM