diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Util.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Util.php b/src/Util.php index 2384911..f06718d 100644 --- a/src/Util.php +++ b/src/Util.php @@ -8,4 +8,14 @@ function build_message_id($time, $postId, $forumHost) { return "<$time.$postId.bridge@$forumHost>"; } +/* +function is_ascii($string) { + return !preg_match('/[^\x00-\x7F]/S', $str); +} +*/ + +function utf8_quote($string) { + return '=?UTF-8?B?' . base64_encode($string) . '?='; +} + ?> |