finaly found the error.
For french, you have to change the encoding if you have specials characters like (é,è,ê,ë,ç,...) here's an exemple :
Code:
<?
function send($what) {
	echo  mb_convert_encoding($what, "UTF-8", "ISO-8859-1");
}
switch($_REQUEST['action']) {
	case 'test':
		send("main|terminé");
		break;

}
?>