1--TEST-- 2mb_send_mail() test 6 (lang=Traditional Chinese) 3--EXTENSIONS-- 4mbstring 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) == 'WIN') { 8 die('skip.. Not valid for Windows'); 9} 10if (!function_exists("mb_send_mail") || !mb_language("Traditional Chinese")) { 11 die("skip mb_send_mail() not available"); 12} 13if (!@mb_internal_encoding('BIG5')) { 14 die("skip BIG5 encoding is not available on this platform"); 15} 16?> 17--INI-- 18sendmail_path=/bin/cat 19mail.add_x_header=off 20--FILE-- 21<?php 22$to = 'example@example.com'; 23 24/* default setting */ 25mb_send_mail($to, mb_language(), "test"); 26 27/* Traditional Chinese () */ 28if (mb_language("traditional chinese")) { 29 mb_internal_encoding('BIG5'); 30 mb_send_mail($to, "���� ".mb_language(), "����"); 31} 32?> 33--EXPECTF-- 34To: example@example.com 35Subject: %s 36MIME-Version: 1.0 37Content-Type: text/plain; charset=%s 38Content-Transfer-Encoding: %s 39 40%s 41To: example@example.com 42Subject: =?BIG5?B?tPrF5yBUcmFkaXRpb25hbCBDaGluZXNl?= 43MIME-Version: 1.0 44Content-Type: text/plain; charset=BIG5 45Content-Transfer-Encoding: 8bit 46 47���� 48