Bonjour,

Je viens vous solliciter pour résoudre un petit problème qui m'échappe un peu...

J'ai un plugin qui permet d'envoyer une lettre aux membres inscrits, tout fonctionne parfaitement sauf les caractères accentués qui se transforment en © etc...

Il sagirait apparemment d'une ligne à commenter ou decommenter d'apres ce que j'ai pu comprendre.

Quelqu'un pourrait il m'aider ou m'expliquer comment faire pour résoudre ce problème.

Par avance merci.

Je vous mets le bout de code qui semble être concerné, si toutefois d'après vous il ne sagit pas du bon merci de m'en faire part afin que je publie le code en entier.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
			$post_content = stripslashes($post_content);
			$post_content = str_replace(array("“","â€?","’","–","—","…"," "), array('"','"','´','–','—','...',' '), $post_content);
//			$post_content = str_replace(array('Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', 'ß'), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss'), $post_content);
			$post_content = str_replace(array(chr(196), chr(228), chr(214), chr(246), chr(220), chr(252), chr(223)), array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'), utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß')), $post_content);
//			$post_content = str_replace(array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'),utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß'), utf8_encode('?')), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss', '?'), $post_content );
			$post_content = utf8_decode($post_content);				
 
			$post_content_filtered = apply_filters('the_content', $post_content);
			$post_content_filtered = str_replace(']]>', ']]>', $post_content_filtered);
 
			$post_title = stripslashes($post_title);
			$post_title = str_replace(array("“","â€?","’","–","—","…"), array('"','"','´','–','—','...'), $post_title);
//			$post_title = str_replace(array('Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', 'ß'), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss'), $post_title);
			$post_title = str_replace(array(chr(196), chr(228), chr(214), chr(246), chr(220), chr(252), chr(223)), array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'), utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß')), $post_title);
//			$post_title = str_replace(array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'),utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß'), utf8_encode('?')), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss', '?'), $post_title );
			$post_title = utf8_decode($post_title);