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
----------------------------------------------
News module and special chars problem
Re: News module and special chars problem
Any suggestions to try?
Re: News module and special chars problem
What's your page encoding?
Is there a set_names param inside your config.PHP? If yes which one?
Please post your News template.
Is there a set_names param inside your config.PHP? If yes which one?
Please post your News template.
Re: News module and special chars problem
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
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