Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

PHP-Fusion Multi-Languages (UTF Support)

Hello to PHP-Fusioneer

'MainCore.php' Editions:

1 - UTF Charset for dbconnect()
after line 255
Add This Code...
CodeDownload  
mysql_set_charset('utf8',$db_connect); 


http://www.sourcepod.com/dxouqa25-11876


2 - Support UTF String
Add this Code to first maincore.php
CodeDownload  
ini_set('default_charset','utf-8');
ini_set('mbstring.language',          'Neutral');
ini_set('mbstring.internal_encoding',       'UTF-8');
ini_set('mbstring.http_input',          'UTF-8');
ini_set('mbstring.http_output',       'UTF-8');
ini_set('mbstring.encoding_translation',   'On');
ini_set('mbstring.detect_order',       'auto');
ini_set('mbstring.substitute_character',    'long');
ini_set('mbstring.func_overload',7);

mb_internal_encoding("UTF-8");
mb_http_output( "UTF-8" );
ob_start("mb_output_handler");




3 - Fix trimlink() Function
Replace this
CodeDownload  
if (strlen($text) > $length) $text = substr($text, 0, ($length-3))."...";


With
CodeDownload  
if (strlen($text) > $length) $text = mb_substr($text,0,($length-3),mb_detect_encoding($text))."...";




Good Luck
Ali Dbg attached the following file:
maincorephp.zip [8.94kB / 348 Downloads]

Quote

Ali Dbg wrote:
Good Luck

Thank you - but I prefer to not make any changes in the core file(s). ;)

Quote

smokeman wrote:

Quote

Ali Dbg wrote:
Good Luck

Thank you - but I prefer to not make any changes in the core file(s). ;)


Thanks ;) Yes Right!
but edition is little and Sorry for edit a great maincore!:|
Thread Information
Author
Replies
3 posts
Views
2,956 times
Last Post
Last updated on 7 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: smokeman, Ali Dbg