Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:ezconvertdbcharset

Convert all Exponential database tables to use UTF-8 character set.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/ezconvertdbcharset.md

On this page

exp:ezconvertdbcharset

Convert all Exponential database tables to use UTF-8 character set.

Script bin/php/ezconvertdbcharset.php, code in kernel/private/classes/commands/ezconvertdbcharset.php. Run it from the installation root, as the user the web server runs as:

./console exp:ezconvertdbcharset --help
php bin/php/ezconvertdbcharset.php --help

Options

OptionValueHelp
--extra-xml-attributesrequiredspecify custom attributes which store its data in xml. usage: <datatype_string>[.<table>.<field>][,<datatype_string>.<table>.<field>...]. default table is 'ezcontentobject_attribute', default data field is 'data_text' note: your custom table must have 'id', 'version' and 'data_type_string' fields.
--extra-xml-datarequiredspecify custom xml data. usage: <table>.<field>[,<table>.<field>...]. note: your custom table must have 'id' field.
--extra-serialized-datarequiredspecify custom serialized data. usage: <table>.<field>;<key_field1>[.<key_field2>....][,<table>.<field>...]. ex: mytable.data_text;id.version,mytable2.data;id
--collationrequiredspecify collation for converted db. default is 'utf8_general_ci'
--skip-class-translationsContent class translations were added in Exponential 3.9. Use this options if upgrading from early version.
--iconv-character-setrequiredThis setting is used when characters are converted by iconv(). This settings is typically needed when a character set is not called the same by the database and iconv. An example is "windows-1252" (iconv) and "iso-8859-1" (mysql 5)
--log-filenamerequiredSpecify a file where iconv conversions will be logged to

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/ezconvertdbcharset.php, kernel/private/classes/commands/ezconvertdbcharset.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x