[SOLVED]News Module - Problem with Title field Encoding in ver. 1.5.3 CMSMS

Обсуждение CMS Made Simple в России.

Moderators: iturbay, wdwp

Post Reply
User avatar
webboy33
Forum Members
Forum Members
Posts: 36
Joined: Thu Jan 22, 2009 10:38 am

[SOLVED]News Module - Problem with Title field Encoding in ver. 1.5.3 CMSMS

Post by webboy33 »

I noticed it in the new 1.5.3 version.
When i do a new article news, the title is on cirylic language \i use UTF-8 anywhere i can\.
On the front end, when the page is loaded, the news articles titles on left "short" news side are showing normal, except the mouse over comment, which is coming like this : �а��и по повод нови� �ай�

When i click on the article and it is loaded on the right content page side, the title become in the "wrong" way:
�а��и по повод нови� �ай�

I converted all module news templates in UTF-8. And the problem is still up.

Someone to know wich file exactly is the encoding problem with the title?
Last edited by webboy33 on Thu Mar 26, 2009 7:51 am, edited 1 time in total.
Sonya

Re: News Module - Problem with Title field Encoding in ver. 1.5.3 CMSMS

Post by Sonya »

The problem is the core function in CMSMS /lib/smarty/plugins/modifier.escape.php

Code: Select all

function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'ISO-8859-1')
If you use utf-8 you have to change the function to

Code: Select all

function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'utf-8')
or use full modifier in the news template

Code: Select all

{$entry->title|escape:'html':'utf-8'}
User avatar
webboy33
Forum Members
Forum Members
Posts: 36
Joined: Thu Jan 22, 2009 10:38 am

Re: News Module - Problem with Title field Encoding in ver. 1.5.3 CMSMS

Post by webboy33 »

Спосибо, Соня!  :-*
Меня из Болгария.
You are very deep in CMSMS, i am impressed!
I just wake up this morning with the thought to change back in 1.5.2 version. But when i read your post now, you make my day sunny :).
spiriralph
Forum Members
Forum Members
Posts: 36
Joined: Sat Jun 27, 2009 10:52 am

Re: [SOLVED]News Module - Problem with Title field Encoding in ver. 1.5.3 CMSMS

Post by spiriralph »

U can use {news lang='ru-RU'}
Post Reply

Return to “Russian - русский”