I'm in an UTF-8 project. I have data from an old ISO project where accents are bad encoded (é,è...), I don't want to convert the ISO data but I need to match some data between the 2 databases.
So I got to transform a "é" into a "é" (and so on..)
I tried to convert to ISO but I never succeeded to obtain the weird encodage.
Is there a way to convert these accents while staying in UTF-8 file encodage?
It really depends on which ISO encoding you were working with, but to (invalidly) "downgrade" from UTF-8 you could trying something like mb_convert_encoding('é', 'UTF-8', 'ISO-8859-1')
, demo here
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.