wodk
Forum Replies Created
-
Forum: Plugins
In reply to: [JSM file_get_contents() Shortcode] Problems with characters in frenchSame problem with this version 🙂
Why don’t you take the lines i gave to you ? I found the fix on french PHP forumsWoDK
Forum: Plugins
In reply to: [JSM file_get_contents() Shortcode] Problems with characters in frenchNo the current dev version have the same problem for special characters :
xadmaster.library 12.1 (28.09.2003)
– Ajout d’un nouvel id-external cr�� par Stuart en remplacement de l’idPAK external.
– Ajout du client PackDir cr�� par Stuart.
– Ajout du client Unreal cr�� par Stuart.i reload my “fixed” version for now. Feel free to give me your versions to test if you need help.
Forum: Plugins
In reply to: [JSM file_get_contents() Shortcode] Problems with characters in frenchThanks for this great plugin !
I fixed it for my problem by replacing the line
#$content = file_get_contents( $url );by the code :
function file_get_contents_utf8($fn) { $content = file_get_contents($fn); return mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); } $content = file_get_contents_utf8( $url );I hope you will official fix it 😉
Thanks again,
Best Regards,
WoDK
Forum: Plugins
In reply to: [JSM file_get_contents() Shortcode] Problems with characters in frenchI tried also :
#$content = file_get_contents( $url ); function file_get_contents_utf8($url) { $content2 = file_get_contents($url); Return mb_convert_encoding($content2, "HTML-ENTITIES", "UTF-8");} $content = file_get_contents_utf8($url);With no success 🙁
Forum: Plugins
In reply to: [JSM file_get_contents() Shortcode] Problems with characters in frenchi have tried this fast fix 🙂 But My PHP skills are to low and it seem it’s not working 🙂
$content = file_get_contents( $url );
$content = mb_convert_encoding($content, ‘HTML-ENTITIES’, “UTF-8”);