unpack('U*', $string) This expression is resulting in a null string if the string does not have any unicode characters.. How to avoid this situation.. please help me out