From e1906e6eda8098573a47fc7c78663348500920bd Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 27 Feb 2005 10:41:02 +0100 Subject: better mailheader handling #168 darcs-hash:20050227094102-9977f-a481ce76ccdb40f8eaa762a332b93093de8f7a87.gz --- inc/utf8.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'inc/utf8.php') diff --git a/inc/utf8.php b/inc/utf8.php index 4fee844d6..9fc99820e 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -53,6 +53,23 @@ function utf8_isASCII($str){ return true; } +/** + * Strips all highbyte chars + * + * Returns a pure ASCII7 string + * + * @author Andreas Gohr + */ +function utf8_strip($str){ + $ascii = ''; + for($i=0; $i