Skip to content

Commit 995da81

Browse files
committed
docs: update utf8 to utf8mb4
1 parent 8aedb6f commit 995da81

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎user_guide_src/source/database/configuration/001.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Database extends Config
1818
'DBPrefix' => '',
1919
'pConnect' => false,
2020
'DBDebug' => true,
21-
'charset' => 'utf8',
22-
'DBCollat' => 'utf8_general_ci',
21+
'charset' => 'utf8mb4',
22+
'DBCollat' => 'utf8mb4_general_ci',
2323
'swapPre' => '',
2424
'encrypt' => false,
2525
'compress' => false,

‎user_guide_src/source/database/configuration/004.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Database extends Config
1010

1111
// MySQLi
1212
public array $default = [
13-
'DSN' => 'MySQLi://username:password@hostname:3306/database?charset=utf8&DBCollat=utf8_general_ci',
13+
'DSN' => 'MySQLi://username:password@hostname:3306/database?charset=utf8mb4&DBCollat=utf8mb4_general_ci',
1414
// ...
1515
];
1616

‎user_guide_src/source/database/configuration/005.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class Database extends Config
2020
'DBPrefix' => '',
2121
'pConnect' => true,
2222
'DBDebug' => true,
23-
'charset' => 'utf8',
24-
'DBCollat' => 'utf8_general_ci',
23+
'charset' => 'utf8mb4',
24+
'DBCollat' => 'utf8mb4_general_ci',
2525
'swapPre' => '',
2626
'encrypt' => false,
2727
'compress' => false,
@@ -36,8 +36,8 @@ class Database extends Config
3636
'DBPrefix' => '',
3737
'pConnect' => true,
3838
'DBDebug' => true,
39-
'charset' => 'utf8',
40-
'DBCollat' => 'utf8_general_ci',
39+
'charset' => 'utf8mb4',
40+
'DBCollat' => 'utf8mb4_general_ci',
4141
'swapPre' => '',
4242
'encrypt' => false,
4343
'compress' => false,

‎user_guide_src/source/database/configuration/006.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Database extends Config
1818
'DBPrefix' => '',
1919
'pConnect' => true,
2020
'DBDebug' => true,
21-
'charset' => 'utf8',
22-
'DBCollat' => 'utf8_general_ci',
21+
'charset' => 'utf8mb4',
22+
'DBCollat' => 'utf8mb4_general_ci',
2323
'swapPre' => '',
2424
'compress' => false,
2525
'encrypt' => false,

‎user_guide_src/source/database/connecting/006.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
'DBPrefix' => '',
1111
'pConnect' => false,
1212
'DBDebug' => true,
13-
'charset' => 'utf8',
14-
'DBCollat' => 'utf8_general_ci',
13+
'charset' => 'utf8mb4',
14+
'DBCollat' => 'utf8mb4_general_ci',
1515
'swapPre' => '',
1616
'encrypt' => false,
1717
'compress' => false,

‎user_guide_src/source/dbmgmt/forge/016.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
$attributes = ['ENGINE' => 'InnoDB'];
44
$forge->createTable('table_name', false, $attributes);
5-
// produces: CREATE TABLE `table_name` (...) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
5+
// produces: CREATE TABLE `table_name` (...) ENGINE = InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci

0 commit comments

Comments
 (0)