API16

JDatabaseMySQL/setUTF: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 27: Line 27:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setUTF
  category=setUTF
  category=JDatabaseMySQL
  category=JDatabaseMySQL
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:28, 25 March 2017

Description

Custom settings for UTF support


<! removed transcluded page call, red link never existed >

Syntax

setUTF()


Defined in

libraries/joomla/database/database/mysql.php

Importing

jimport( 'joomla.database.database.mysql' );

Source Body

public function setUTF()
{
        return mysql_query("SET NAMES 'utf8'", $this->_connection);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples