Advertisement
techouse

mime_header_encode.php

Jul 8th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. <?php
  2. function mime_header_encode($string) {
  3.     return (preg_match('/[\x{0080}-\x{024f}]+/u', $string)) ? '=?UTF-8?B?'.base64_encode($string).'?=' : $string;
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement