9 lines
226 B
PHP
Raw Permalink Normal View History

2015-07-16 12:55:58 +08:00
<?php
PluginSet("Punycode Encode & Decode.");
2016-03-09 16:53:50 +08:00
if (idn_to_ascii($plugin_text)) {
$msg = "UTF-8: ".idn_to_ascii($plugin_text);
}else {
$msg = "Punnycode: ".idn_to_utf8($plugin_text);
2015-07-16 12:55:58 +08:00
}
$BOT->msg($plugin_sendto, $msg);
?>