#charsethero : Mixed ISO-8859/UTF-8 conversion
▻https://gist.github.com/Fil/61fc715b9aab8133c603
je suis parti du script ci-dessous et j’ai rajouté un simple while(<>)
autour pour que ça soit utilisable. Pour @resf ça a permis de récupérer une base de données où certains contenus étaient encodés en iso-latin, d’autres en utf-8.
▻http://www.perlmonks.org/?node_id=642617
I had a problem with an application that produced a horrible mixed UTF-8 and #ISO-8859 encoded XML output. I found this way to transform it to pure UTF-8 without double-encoding the #UTF-8 sequences that were already there. I know this will not work in all cases, but it has been helpful.
au passage je note aussi qu’il a fallu changer un vieux longblob en longtext pour éviter que SPIP n’applique une deuxième phase de conversion.