1
kerkyra
global.php and utf
  • 2008/9/26 12:49

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hallo there, i'm using XOOPS 2.3 final and trying to make a translation in utf encoding! If i change the translation file's encoding to utf a white space is showing on top of the page (right above the header) in older versions i used to see some weird characters. any idea why this is happening?

furthermore the captcha image is not showing when the captcha.php language file in turned into utf encoding.....(it only shows it instantly and then disappears...)
whttp://www.guidemap.gr - Beta is out...

2
limecity
Re: global.php and utf
  • 2008/9/27 17:28

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


i am also getting problem of not being able to post chinese characters in my site.

i dun understand this

Quote:

Modify /languages/yourlanguage/global.php to use existent _CHARSET value if it has been changed to UTF-8 in your new global.php file as

define('_CHARSET', 'UTF-8');




I change the 0 to 1

Quote:

//%%%%% LANGUAGE SPECIFIC SETTINGS %%%%%
define('_CHARSET', 'UTF-8');
define('_LANGCODE', 'en');

// change 0 to 1 if this language is a multi-bytes language
define("XOOPS_USE_MULTIBYTES", "1");
?>

hhttp://www.mounthiking.com
all your hiking gears and gadgets


3
limecity
Re: global.php and utf
  • 2008/9/27 17:46

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


i went to mainfile.php

and replaced the
define( 'XOOPS_DB_CHARSET', 'utf8' );
to
define( 'XOOPS_DB_CHARSET', 'ISO-8859-1' );

and now it works and able to post chinese characters. but are there any consequences ?
hhttp://www.mounthiking.com
all your hiking gears and gadgets


4
kerkyra
Re: global.php and utf
  • 2008/9/27 22:18

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


i think my problem lies to xajax! i noticed that the module that i made (which is using xajax) is having this kind of behaviour with the utf-encoded files! all other parts of the site seems, repeat seems to be working. Anyone has any idea?
whttp://www.guidemap.gr - Beta is out...

Login

Who's Online

454 user(s) are online (341 user(s) are browsing Support Forums)


Members: 0


Guests: 454


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits