Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

CONF Array in Conf.php Double Byte Charater Problem Error


  • You cannot reply to this topic
No replies to this topic

#1 yansfung

  • Community Member
  • 59 posts
  • Real Name:Yan, SY FUNG
  • Gender:Male
  • Location:Hong Kong

Posted 27 March 2011, 11:08

It seems that PHP does not properly allow $CONF array to accept multi lingual characters, such as Chinese characters in the Conf.php file.

Data string at line 47 have to modify or cannot load properly in "jedit".

I have modify apart of the Conf.php code as shown in the following:

.
.
echo "<br />Description=说明,Technical Details=技术细节,Availability=可用性";
//Language Settings
$CONF['defaultLanguage'] = 'en'; //will be taken if no specific language is set or a tab name is not defined in a specific language

$CONF['tabs']['en'][1] = 'Description';
$CONF['tabs']['en'][2] = 'Technical Details';
$CONF['tabs']['en'][3] = 'Availability';

$CONF['tabs']['cn'][1] = '说明';
$CONF['tabs']['cn'][2] = '技术细节';
$CONF['tabs']['cn'][3] = '可用性';
.
.

Then put some codes in the file TabMenuSection.php as shown in the following lines:
171 for($x = 1; $x <= $noOfTabsCalculated; $x++)
172 {
173 echo "<br />The TabName is ".$tabName;
174 $tabName = $this->getTabName($x);
175 echo " Then is ". $tabName;
176 $normalDivTab = '<div id="pronuxTab'.$x.'" class="pronuxTabNo rmal" style="background-color: #'.$this->CONF['tabColor'].'; height: '.$t his->CONF['tabHeight'].'px; width: '.$this->getTabWidth($x).'px;">';
177

The screen prompt for the first "echo" displayed fine. However, Conf.php could not pass the Chinese strings properly to functions of TabMenSection.php.

Can somebody help to drop some helpful pointers which someone else has already addressed/fixed this problem?

Thanks a lot indeed in advance!!

My environment is FC14+LAMP+UTF-8-oSC2.3.1+Eng+Simplified_Chinese.

:x
YaNotCook !!