MySQL Forums
Forum List  »  Newbie

Re: Searching database for strings with Swedish characters
Posted by: Barry Galbraith
Date: December 12, 2013 05:48PM

TNG is written in PHP.
I have looked at TNG 7.1.3. If yours is later, YMMV.

The database connection is done in globallib.php with the function tng_db_connect().
In this function there is a line like this

  	@mysql_query("SET NAMES 'utf8'");

replace that line with this

	  	@mysql_set_charset('utf8');

Character set will now be set using the recommended method.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.