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.
Not a member yet? Click here to register.
Forgot Password?

PHPFusion Multi-Languages (UTF Support)

Asked Modified Viewed 3,555 times
A
Ali Dbg
A
img1.imagilive.com/1212/userbar.png
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

Hello to PHPFusioneer

'MainCore.php' Editions:

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

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


2 - Support UTF String
Add this Code to first maincore.php
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
if (strlen($text) > $length) $text = substr($text, 0, ($length-3))."...";

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



Good Luck
Edited by Ali Dbg on 26-11-2012 21:45,
Ali Dbg attached the following file:
maincorephp.zip [No information available / 386 Downloads]
0 replies

2 posts

S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Quote

Ali Dbg wrote:
Good Luck

Thank you - but I prefer to not make any changes in the core file(s). ;)
0 replies
A
Ali Dbg
A
img1.imagilive.com/1212/userbar.png
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

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!:|
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
A
A
img1.imagilive.com/1212/userbar.png
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet