in our company we use a proprietary CMS, this CMS is in use for almoust a thousand websites and is aged of approximatively 15 years. (it has evolved but is very features rich)
until now whe have always used iso-8859-1 as charset, but whe have the nescessity to use utf-8 for one project.
there are my questions :
TLDR infos :
in this configuration, we cannot migrate every website on a single time (ie : because there is local code). So I want to make two version of our core : one in iso-8859-1 and the other in utf8. From now I think that I'm going to develop a script on our deployement system, this script, will create a copy utf8 encoded of our core before the rsynch-ing.
My concern is for example about all the "mb_ " stuff in PHP that won't be called, so i'll have to search/replace every php native fucntion to replace it by a custome one that will use the "mb_ " version if nescessary (furthermore, the overloding of those functions must be in the php.ini file, it cannot be defined in the .htaccess of a particulare website ( source ))
PS : sorry for my poor english, it's not my native language :(
So here is how I handled it :
for each individual CMS, a convertion tool exist, it convert filesystem, database charset/collation, configuration (ie : connect to mysql with utf8), ....
for non compatible functions such as utf8_encode, I search/replaced it with a function who is in charge to not call the function if the server is utf8
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.