News module and special chars problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
lumimies
Forum Members
Forum Members
Posts: 40
Joined: Mon Sep 16, 2013 3:26 pm

News module and special chars problem

Post by lumimies »

Hello

Problem with special chars in News module titles, content and content in general.

Mainly these: ŋ, č and đ or: (if chars not showing here)

http://graphemica.com/%C5%8B
http://graphemica.com/%C4%8D
http://graphemica.com/%C4%91

I tried to use html code in title and content but on saving they turn to "?"

Any suggestions?

Regards

----------------------------------------------

Cms Version: 2.1.5

Installed Modules:

AdminSearch: 1.0.2
CGContentUtils: 2.1.5
CGExtensions: 1.53.13
CGFeedMaker: 1.0.20
CGSimpleSmarty: 2.1.4
CGSnapshot: 1.2.1
CG_RSS_Reader: 1.0.3
CMSContentManager: 1.1.1
CMSMailer: 6.2.14
DesignManager: 1.1.1
ExtendedTools: 1.3.3
FileManager: 1.5.2
JQueryTools: 1.3.9
MenuManager: 1.50.2
MicroTiny: 2.0.3
MleCMS: 2.0-alpha2
ModuleManager: 2.0.4
Navigator: 1.0.3
News: 2.50.5
PDFGenerator: 0.1
Printing: 1.1.2
Search: 1.50.2
ThemeManager: 1.1.8
TinyMCE: 3.1.4


Config Information:

php_memory_limit:
max_upload_size: 32000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Helsinki
permissive_smarty: false


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: apache2handler
Server Os: Darwin 13.4.0 On x86_64
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.38
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------
lumimies
Forum Members
Forum Members
Posts: 40
Joined: Mon Sep 16, 2013 3:26 pm

Re: News module and special chars problem

Post by lumimies »

Any suggestions to try?
chandra

Re: News module and special chars problem

Post by chandra »

What's your page encoding?

Is there a set_names param inside your config.PHP? If yes which one?

Please post your News template.
lumimies
Forum Members
Forum Members
Posts: 40
Joined: Mon Sep 16, 2013 3:26 pm

Re: News module and special chars problem

Post by lumimies »

Hello

On page template:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

****

in config.php:

$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;

****

Template: News::Detail:

****
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}

{if $entry->postdate}
<div id="NewsPostDetailDate">
{$entry->postdate|cms_date_format}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title|escape:htmlall}</h3>

{if $entry->summary}
<div id="NewsPostDetailSummary">
<strong>
{eval var=$entry->summary}
</strong>
</div>
{/if}

****

Regards
Post Reply

Return to “CMSMS Core”