Created
December 5, 2010 13:29
-
-
Save slywalker/729077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Emoji4Unicode.php'; | |
$emoji = new Emoji4Unicode; | |
$html = <<<HTML | |
<ul> | |
<li>太陽:󾀀</li> | |
<li>時計:󾀞</li> | |
<li>ハートに矢:󾬒</li> | |
<li>ロックオン:󾮢 - Google独自</li> | |
<li>存在しないコード:�</li> | |
</ul> | |
HTML; | |
header('Content-type: application/xhtml+xml'); | |
echo '<?xml version="1.0" encoding="UTF-8"?>'; | |
?> | |
<!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/2.0) 1.0//EN" "i-xhtml_4ja_10.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/> | |
<title>Example - Emoji4Unicode</title> | |
</head> | |
<body> | |
<h1>Example - Emoji4Unicode</h1> | |
<h2>docomo</h2> | |
<?php echo $emoji->convert($html, 'docomo', 'google');?> | |
<h2>kddi</h2> | |
<?php echo $emoji->convert($html, 'kddi', 'google');?> | |
<h2>softbank</h2> | |
<?php echo $emoji->convert($html, 'softbank', 'google');?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment