switch($rfc822_header->priority)
{
case 1:
- $header[] = 'X-Priority: 1 (Highest)'.$rn;
- $header[] = 'Importance: High'. $rn; break;
+ $header[] = 'X-Priority: 1 (Highest)'.$rn;
+ $header[] = 'Importance: High'. $rn; break;
case 3:
- $header[] = 'X-Priority: 3 (Normal)'.$rn;
- $header[] = 'Importance: Normal'. $rn; break;
+ $header[] = 'X-Priority: 3 (Normal)'.$rn;
+ $header[] = 'Importance: Normal'. $rn; break;
case 5:
- $header[] = 'X-Priority: 5 (Lowest)'.$rn;
- $header[] = 'Importance: Low'. $rn; break;
+ $header[] = 'X-Priority: 5 (Lowest)'.$rn;
+ $header[] = 'Importance: Low'. $rn; break;
default: break;
}
}
return $refer;
}
}
-?>
+?>
\ No newline at end of file
function getBcc() {
return true;
}
-
- /* to do: finishing the imap-class so the initStream function can call the
+
+ /* to do: finishing the imap-class so the initStream function can call the
imap-class */
}
-?>
+?>
\ No newline at end of file
$s = str_replace("\n.","\n..",$s);
}
}
-
+
function initStream($message, $domain, $length=0, $host='', $port='', $user='', $pass='', $authpop=false) {
global $use_smtp_tls,$smtp_auth_mech;
-
+
if ($authpop) {
$this->authPop($host, '', $user, $pass);
}
-
+
$rfc822_header = $message->rfc822_header;
-
+
$from = $rfc822_header->from[0];
$to = $rfc822_header->to;
$cc = $rfc822_header->cc;
$content_type = $rfc822_header->content_type;
// MAIL FROM: <from address> MUST be empty in cae of MDN (RFC2298)
- if ($content_type->type0 == 'multipart' &&
+ if ($content_type->type0 == 'multipart' &&
$content_type->type1 == 'report' &&
isset($content_type->properties['report-type']) &&
$content_type->properties['report-type']=='disposition-notification') {
$from->host = '';
$from->mailbox = '';
- }
-
+ }
+
if (($use_smtp_tls == true) and (check_php_version(4,3)) and (extension_loaded('openssl'))) {
$stream = fsockopen('tls://' . $host, $port, $errorNumber, $errorString);
} else {
$stream = fsockopen($host, $port, $errorNumber, $errorString);
}
-
+
if (!$stream) {
$this->dlv_msg = $errorString;
$this->dlv_ret_nr = $errorNumber;
if ($this->errorCheck($tmp, $stream)) {
return(0);
}
-
- /*
+
+ /*
* If $_SERVER['HTTP_HOST'] is set, use that in our HELO to the SMTP
- * server. This should fix the DNS issues some people have had
+ * server. This should fix the DNS issues some people have had
*/
if (sqgetGlobalVar('HTTP_HOST', $HTTP_HOST, SQ_SERVER)) { // HTTP_HOST is set
// optionally trim off port number
} else { // For some reason, HTTP_HOST is not set - revert to old behavior
$helohost = $domain;
}
-
+
/* Lets introduce ourselves */
fputs($stream, "EHLO $helohost\r\n");
$tmp = fgets($stream,1024);
return(0);
}
}
-
+
if (( $smtp_auth_mech == 'cram-md5') or ( $smtp_auth_mech == 'digest-md5' )) {
// Doing some form of non-plain auth
if ($smtp_auth_mech == 'cram-md5') {
} elseif ($smtp_auth_mech == 'digest-md5') {
fputs($stream, "AUTH DIGEST-MD5\r\n");
}
-
+
$tmp = fgets($stream,1024);
-
+
if ($this->errorCheck($tmp,$stream)) {
return(0);
}
-
+
// At this point, $tmp should hold "334 <challenge string>"
$chall = substr($tmp,4);
- // Depending on mechanism, generate response string
+ // Depending on mechanism, generate response string
if ($smtp_auth_mech == 'cram-md5') {
$response = cram_md5_response($user,$pass,$chall);
} elseif ($smtp_auth_mech == 'digest-md5') {
$response = digest_md5_response($user,$pass,$chall,'smtp',$host);
}
fputs($stream, $response);
-
+
// Let's see what the server had to say about that
$tmp = fgets($stream,1024);
if ($this->errorCheck($tmp,$stream)) {
return(0);
}
-
+
// CRAM-MD5 is done at this point. If DIGEST-MD5, there's a bit more to go
if ($smtp_auth_mech == 'digest-md5') {
// $tmp contains rspauth, but I don't store that yet. (No need yet)
fputs($stream,"\r\n");
$tmp = fgets($stream,1024);
-
+
if ($this->errorCheck($tmp,$stream)) {
return(0);
}
// The LOGIN method
fputs($stream, "AUTH LOGIN\r\n");
$tmp = fgets($stream, 1024);
-
+
if ($this->errorCheck($tmp, $stream)) {
return(0);
}
if ($this->errorCheck($tmp, $stream)) {
return(0);
}
-
+
fputs($stream, base64_encode($pass) . "\r\n");
$tmp = fgets($stream, 1024);
if ($this->errorCheck($tmp, $stream)) {
} elseif ($smtp_auth_mech == "plain") {
/* SASL Plain */
$auth = base64_encode("$user\0$user\0$pass");
-
+
$query = "AUTH PLAIN\r\n";
fputs($stream, $query);
$read=fgets($stream, 1024);
-
+
if (substr($read,0,3) == '334') { // OK so far..
fputs($stream, "$auth\r\n");
$read = fgets($stream, 1024);
}
-
+
$results=explode(" ",$read,3);
$response=$results[1];
$message=$results[2];
return(0);
}
}
-
+
/* Ok, who is sending the message? */
- $fromaddress = ($from->mailbox && $from->host) ?
+ $fromaddress = ($from->mailbox && $from->host) ?
$from->mailbox.'@'.$from->host : '';
fputs($stream, 'MAIL FROM:<'.$fromaddress.">\r\n");
$tmp = fgets($stream, 1024);
if ($this->errorCheck($tmp, $stream)) {
return(0);
}
-
+
/* send who the recipients are */
for ($i = 0, $cnt = count($to); $i < $cnt; $i++) {
if (!$to[$i]->host) $to[$i]->host = $domain;
}
}
}
-
- for ($i = 0, $cnt = count($cc); $i < $cnt; $i++) {
+
+ for ($i = 0, $cnt = count($cc); $i < $cnt; $i++) {
if (!$cc[$i]->host) $cc[$i]->host = $domain;
if ($cc[$i]->mailbox) {
fputs($stream, 'RCPT TO:<'.$cc[$i]->mailbox.'@'.$cc[$i]->host.">\r\n");
}
}
}
-
+
for ($i = 0, $cnt = count($bcc); $i < $cnt; $i++) {
if (!$bcc[$i]->host) $bcc[$i]->host = $domain;
if ($bcc[$i]->mailbox) {
}
return $stream;
}
-
+
function finalizeStream($stream) {
fputs($stream, "\r\n.\r\n"); /* end the DATA part */
$tmp = fgets($stream, 1024);
fclose($stream);
return true;
}
-
+
/* check if an SMTP reply is an error and set an error message) */
function errorCheck($line, $smtpConnection) {
case '503': $message = _("Bad sequence of commands");
break;
case '504': $message = _("Command parameter not implemented");
- break;
+ break;
case '530': $message = _("Authentication required");
break;
case '534': $message = _("Authentication mechanism is too weak");
return true;
}
-
+
function authPop($pop_server='', $pop_port='', $user, $pass) {
if (!$pop_port) {
$pop_port = 110;
/** This of course depends upon Deliver */
require_once(SM_PATH . 'class/deliver/Deliver.class.php');
-
+
/**
* Delivers messages using the sendmail binary
* @package squirrelmail
*
* Sendmail needs LF's as line endings instead of CRLF.
* This function translates the line endings to LF and should be called
- * before each line is written to the stream.
- *
+ * before each line is written to the stream.
+ *
* @param string $s Line to process
* @return void
* @access private
- */
+ */
function preWriteToStream(&$s) {
if ($s) {
- $s = str_replace("\r\n", "\n", $s);
+ $s = str_replace("\r\n", "\n", $s);
}
}
* function initStream
*
* Initialise the sendmail connection.
- *
+ *
* @param Message $message Message object containing the from address
* @param string $sendmail_path Location of sendmail binary
* @return void
- * @access public
- */
+ * @access public
+ */
function initStream($message, $sendmail_path) {
$rfc822_header = $message->rfc822_header;
- $from = $rfc822_header->from[0];
- $envelopefrom = trim($from->mailbox.'@'.$from->host);
+ $from = $rfc822_header->from[0];
+ $envelopefrom = trim($from->mailbox.'@'.$from->host);
$envelopefrom = str_replace(array("\0","\n"),array('',''),$envelopefrom);
- if (strstr($sendmail_path, "qmail-inject")) {
- $stream = popen (escapeshellcmd("$sendmail_path -f$envelopefrom"), "w");
- } else {
- $stream = popen (escapeshellcmd("$sendmail_path -i -t -f$envelopefrom"), "w");
- }
- return $stream;
+ if (strstr($sendmail_path, "qmail-inject")) {
+ $stream = popen (escapeshellcmd("$sendmail_path -f$envelopefrom"), "w");
+ } else {
+ $stream = popen (escapeshellcmd("$sendmail_path -i -t -f$envelopefrom"), "w");
+ }
+ return $stream;
}
/**
* function finalizeStream
*
* Close the stream.
- *
+ *
* @param resource $stream
* @return boolean
* @access public
- */
+ */
function finalizeStream($stream) {
- pclose($stream);
- return true;
+ pclose($stream);
+ return true;
}
/**
* function getBcc
*
* In case of sendmail, the rfc822header must contain the bcc header.
- *
+ *
* @return boolean true if rfc822header should include the bcc header.
* @access private
*/
function getBcc() {
return true;
}
-
+
/**
* function clean_crlf
*
* Cleans each line to only end in a LF
- * Returns the length of the line including a CR,
+ * Returns the length of the line including a CR,
* so that length is correct when the message is saved to imap
- * Implemented to fix sendmail->postfix rejection of messages with
+ * Implemented to fix sendmail->postfix rejection of messages with
* attachments because of stray LF's
*
- * @param string $s string to strip of CR's
+ * @param string $s string to strip of CR's
* @return integer length of string including a CR for each LF
- * @access private
+ * @access private
*/
function clean_crlf(&$s) {
$s = str_replace("\r\n", "\n", $s);
$s2 = str_replace("\n", "\r\n", $s);
return strlen($s2);
}
-
+
}
-?>
+?>
\ No newline at end of file
<?php
header('Location: ../index.php');
-?>
+?>
\ No newline at end of file
* @package squirrelmail
*/
class html {
- var $tag, $text, $style, $class,
+ var $tag, $text, $style, $class,
$id, $html_el = array(), $javascript, $xtr_prop;
function html($tag='', $text='', $style ='', $class='', $id='',
$this->xtr_prop = $xtr_prop;
$this->javascript = $javascript;
}
-
+
function htmlAdd($el, $last=true) {
if ($last) {
$this->html_el[] = $el;
} else {
- $new_html_el = array();
- $new_html_el[] = $el;
- foreach ($this->html_el as $html_el) {
- $new_html_el[] = $html_el;
- }
- $this->html_el = $new_html_el;
+ $new_html_el = array();
+ $new_html_el[] = $el;
+ foreach ($this->html_el as $html_el) {
+ $new_html_el[] = $html_el;
+ }
+ $this->html_el = $new_html_el;
}
}
-
+
function AddChild($tag='', $text='', $style ='', $class='', $id='',
$xtr_prop = '', $javascript = '') {
$el = new html ($tag, $text, $style, $class, $id, $xtr_prop, $javascript);
$this->htmlAdd($el);
}
-
+
function FindId($id) {
$cnt = count($this->html_el);
$el = false;
if ($cnt) {
for ($i = 0 ; $i < $cnt; $i++) {
- if ($this->html_el[$i]->id == $id) {
- $ret = $this->html_el[$i];
- return $ret;
- } else if (count($this->html_el[$i]->html_el)) {
- $el = $this->html_el[$i]->FindId($id);
- }
- if ($el) return $el;
+ if ($this->html_el[$i]->id == $id) {
+ $ret = $this->html_el[$i];
+ return $ret;
+ } else if (count($this->html_el[$i]->html_el)) {
+ $el = $this->html_el[$i]->FindId($id);
+ }
+ if ($el) return $el;
}
}
return $el;
- }
+ }
function InsToId( $el, $id, $last=true) {
$html_el = &$this->FindId($id);
if ($html_el) {
$html_el->htmlAdd($el, $last);
}
- }
-
+ }
+
function scriptAdd($script) {
$s = "\n".'<!--'."\n".
- $script .
- "\n".'// -->'."\n";
+ $script .
+ "\n".'// -->'."\n";
$el = new html ('script',$s,'','','',array('language' => 'JavaScript',
'type' => 'text/javascript'));
$this->htmlAdd($el);
}
-
+
function echoHtml( $usecss=false, $indent='x') {
if ($indent == 'x') {
$indent = ''; $indentmore = '';
$prop = '';
foreach ($xtr_prop as $k => $v) {
if (is_string($k)) {
- $prop.=' '.$k.'="'.$v.'"';
- } else {
- $prop.=' '.$v;
- }
+ $prop.=' '.$k.'="'.$v.'"';
+ } else {
+ $prop.=' '.$v;
+ }
}
- }
+ }
if ($javascript) {
$js = '';
foreach ($javascript as $k => $v) { /* here we put the onclick, onmouseover etc entries */
$js.=' '.$k.'="'.$v.'";';
}
}
- if ($tag) {
+ if ($tag) {
echo $indent . '<' . $tag;
} else {
echo $indent;
}
if ($class) {
echo ' class="'.$class.'"';
- }
+ }
if ($id) {
echo ' id="'.$id.'"';
}
}
if ($style && !$usecss && !is_array($style)) {
/* last premisse is to prevent 'style="Array"' in the output */
- echo ' style="'.$style.'"';
+ echo ' style="'.$style.'"';
}
if ($javascript) {
echo ' '.$js;
}
foreach ($style as $k => $v) {
/* if value of key value = true close the tag */
- if ($v) {
+ if ($v) {
$closestyles .= '</'.$k.'>';
- }
+ }
}
}
echo $openstyles;
echo "\n";
for($i = 0;$i<$cnt;$i++) {
$el = $this->html_el[$i];
- $el->echoHtml($usecss,$indentmore);
+ $el->echoHtml($usecss,$indentmore);
}
echo $indent;
}
}
}
}
-
+
?>
\ No newline at end of file
/* pretty impressive huh? */
-?>
+?>
\ No newline at end of file
* Copyright (c) 2003-2004 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
- * This contains internal squirrelmail functions needed to handle
+ * This contains internal squirrelmail functions needed to handle
* translations when php gettext extension is missing or some functions
* are not available.
*
* @package squirrelmail
* @subpackage i18n
*/
-
+
/**
* Class that uses parsed translation input objects
* @package squirrelmail
$byte[$i]=ord($this->STREAM->read(1));
}
//print sprintf("pos: %d\n",$this->STREAM->currentpos());
- if ($this->BYTEORDER == 0)
+ if ($this->BYTEORDER == 0)
return (int)(($byte[0]) | ($byte[1]<<8) | ($byte[2]<<16) | ($byte[3]<<24));
- else
+ else
return (int)(($byte[3]) | ($byte[2]<<8) | ($byte[1]<<16) | ($byte[0]<<24));
}
$data = $this->STREAM->read($length);
return (string)$data;
}
-
+
/**
* binary search for string
* @param string $string
if ($cmp == 0) {
$this->_HASHED[$string] = $half;
return $half;
- } elseif ($cmp<0)
+ } elseif ($cmp<0)
return $this->find_string($string,$start,$half);
else
return $this->find_string($string,$half,$end);
* @return string translated string
*/
function translate($string) {
- if ($this->error > 0) return $string;
+ if ($this->error > 0) return $string;
$num = $this->find_string($string, 0, $this->total);
if ($num == -1)
return $string;
- else
+ else
return $this->get_translation_number($num);
}
// this is true, right?
// cache header field for plural forms
- if (isset($this->pluralheader) && is_string($this->pluralheader))
+ if (isset($this->pluralheader) && is_string($this->pluralheader))
return $this->pluralheader;
else {
$header = $this->get_translation_number(0);
$result=-1;
} else {
// find out the appropriate form
- $select = $this->select_string($number);
+ $select = $this->select_string($number);
// this should contains all strings separated by NULLs
$result = $this->find_string($single.chr(0).$plural,0,$this->total);
}
}
$addr = ($email ? $personal . ' <' .$email.'>'
- : $this->personal);
+ : $this->personal);
$best_dpl = $this->personal;
} else {
$addr = $email;
}
return $result;
}
-
+
function getEncodedAddress() {
return $this->getAddress(true, true);
}
}
}
-?>
+?>
\ No newline at end of file
$cur_ent_a = explode('.', $this->entity_id);
}
$ent_a = explode('.', $ent);
-
+
for ($i = 0,$entCount = count($ent_a) - 1; $i < $entCount; ++$i) {
if (isset($cur_ent_a[$i]) && ($cur_ent_a[$i] != $ent_a[$i])) {
$msg = $msg->parent;
if($msg) $msg->setEntIds($msg,false,0);
return $msg;
}
-
+
function setEntIds(&$msg,$init=false,$i=0) {
$iCnt = count($msg->entities);
if ($init !==false) {
$iEntSub = $i+1;
- if ($msg->parent->type0 == 'message' &&
+ if ($msg->parent->type0 == 'message' &&
$msg->parent->type1 == 'rfc822' &&
$msg->type0 == 'multipart') {
$iEntSub = '0';
$msg->entity_id='1';
}
for ($i=0;$i<$iCnt;++$i) {
- $msg->entities[$i]->parent =& $msg;
- if (strrchr($msg->entity_id, '.') != '.0') {
+ $msg->entities[$i]->parent =& $msg;
+ if (strrchr($msg->entity_id, '.') != '.0') {
$msg->entities[$i]->setEntIds($msg->entities[$i],$msg->entity_id,$i);
} else {
$msg->entities[$i]->setEntIds($msg->entities[$i],$msg->parent->entity_id,$i);
} else {
$message = new Message();
}
-
+
for ($cnt = strlen($read); $i < $cnt; ++$i) {
$char = strtoupper($read{$i});
switch ($char) {
$arg_a[] = $msg->parseLiteral($read, $i);
++$arg_no;
break;
- case '0':
+ case '0':
case is_numeric($read{$i}):
/* process integers */
if ($read{$i} == ' ') { break; }
if (count($arg_a) > 9) {
$d = strtr($arg_a[0], array(' ' => ' '));
$d = explode(' ', $d);
- if (!$arg_a[1]) $arg_a[1] = _("(no subject)");
+ if (!$arg_a[1]) $arg_a[1] = _("(no subject)");
$hdr->date = getTimeStamp($d); /* argument 1: date */
$hdr->subject = $arg_a[1]; /* argument 2: subject */
// $alt_order[] = "message/rfc822";
foreach ($alt_order as $alt) {
if( ($alt == $type) && isset($this->entity_id) ) {
- if ((count($this->entities) == 0) &&
+ if ((count($this->entities) == 0) &&
(!isset($ent->header->parameters['filename'])) &&
(!isset($ent->header->parameters['name'])) &&
(strtolower($this->header->disposition->name) != 'attachment')) {
function getAttachments($exclude_id=array(), $result = array()) {
/*
- if (($this->type0 == 'message') &&
+ if (($this->type0 == 'message') &&
($this->type1 == 'rfc822') &&
($this->entity_id) ) {
$this = $this->entities[0];
}
return $result;
}
-
+
function initAttachment($type, $name, $location) {
$attachment = new Message();
$mime_header = new MessageHeader();
}
}
-?>
+?>
\ No newline at end of file
*/
/**
- * Contains all variables available in a bodystructure
+ * Contains all variables available in a bodystructure
* @package squirrelmail
*/
class MessageHeader {
<?php
header('Location: ../index.php');
-?>
+?>
\ No newline at end of file
*
* Here you can set name of the link displayed on the right side of main page.
*
- * Link will be displayed only if you have $hide_sm_attributions
+ * Link will be displayed only if you have $hide_sm_attributions
* option set to true.
* @global string $provider_name
*/
*
* Here you can set URL of the link displayed on the right side of main page.
*
- * Link will be displayed only if you have $hide_sm_attributions
+ * Link will be displayed only if you have $hide_sm_attributions
* option set to true.
* @global string $provider_uri
*/
*
* What should be used when sending email.
* If it is set to false, SquirrelMail will use SMTP server settings.
- * If it is set to true, SquirrelMail will use program defined in
+ * If it is set to true, SquirrelMail will use program defined in
* $sendmail_path
* @global bool $useSendmail
*/
* This can increase user's privacy and solve problems with spam filters
* that increase spam marks for dynamic dialup addresses.
*
- * If admin enables this setting, system should have some logging facility
- * or other tools to control users. SquirrelMail's Received: header provides
+ * If admin enables this setting, system should have some logging facility
+ * or other tools to control users. SquirrelMail's Received: header provides
* information, that can't be forged by webmail user.
* @global bool $skip_SM_header
*/
* Path to Sendmail
*
* Program that should be used when sending email. SquirrelMail expects that
- * this program will follow options used by original sendmail
+ * this program will follow options used by original sendmail
* (http://www.sendmail.org).
* @global string $sendmail_path
*/
$sendmail_path = '/usr/sbin/sendmail';
-
+
/**
* IMAP server address
*
* List Special Folders First Control
*
* Whether or not to list the special folders first (true/false).
- * @global bool $list_special_folders_first
+ * @global bool $list_special_folders_first
*/
$list_special_folders_first = true;
* option during folder creation. The option toggles which type of
* folder it should be.
*
- * If this option confuses you, just set it to 'true'. You can not hurt
+ * If this option confuses you, just set it to 'true'. You can not hurt
* anything if it's true, but some servers will respond weird if it's
* false. (Cyrus works fine whether it's true OR false).
* @global bool $show_contain_subfolders_option
* These next two options set the defaults for the way that the
* users see their folder list.
* $default_unseen_notify
- * Specifies whether or not the users will see the number of
+ * Specifies whether or not the users will see the number of
* unseen in each folder by default and also which folders to
* do this to. Valid values are: 1=none, 2=inbox, 3=all.
* $default_unseen_type
* list files in this directory. Confidential data might be laying
* around there.
* + Since the webserver is not able to list the files in the content
- * is also impossible for the webserver to delete files lying around
+ * is also impossible for the webserver to delete files lying around
* there for too long.
* + It should probably be another directory than data_dir.
* @global string $attachment_dir
/**
* Hash level used for data directory.
- *
+ *
* This option allows spliting file based squirrelmail user
* data storage directory into several subfolders. Number from
* 0 to 4 allows allows having up to four subfolder levels.
*
- * Hashing should speed up directory access if you have big number
+ * Hashing should speed up directory access if you have big number
* of users (500 and more).
* @global integer $dir_hash_level
*/
/**
* SquirrelMail Attributions Control
*
- * This option disables display of "created by squirrelmail developers"
+ * This option disables display of "created by squirrelmail developers"
* strings and provider link
* @global bool $hide_sm_attributions
*/
* Server Side Threading Control
*
* If you want to enable server side thread sorting options
- * Your IMAP server must support the THREAD extension for
+ * Your IMAP server must support the THREAD extension for
* this to work.
* @global bool $allow_thread_sort
*/
* IMAP Charset Use Control
*
* This option allows you to choose if SM uses charset search
- * Your imap server should support SEARCH CHARSET command for
+ * Your imap server should support SEARCH CHARSET command for
* this to work.
* @global bool $allow_charset_search
*/
*
* To add a new theme to the options that users can choose from, just
* add a new number to the array at the bottom, and follow the pattern.
- *
+ *
* $theme_default sets theme that will be used by default
- * $theme_css sets stylesheet (from theme/css directory) that will be
+ * $theme_css sets stylesheet (from theme/css directory) that will be
* used by default.
* @global integer $theme_default
* @global string $theme_css
* 'host' => 'memberdir.netscape.com',
* 'name' => 'Netcenter Member Directory',
* 'base' => 'ou=member_directory,o=netcenter.com'
- * );
+ * );
*/
// Add your ldap server options here
/**
* MOTD
*
- * This is a message that is displayed immediately after a user logs in.
+ * This is a message that is displayed immediately after a user logs in.
* @global string $motd
*/
$motd = "";
/*** Database ***/
/**
- * Read doc/database.txt in order to get more information
+ * Read doc/database.txt in order to get more information
* about these settings.
*/
/**
*
* This is the default language. It is used as a last resort
* if SquirrelMail can't figure out which language to display.
- * Language names usually consist of language code, undercore
+ * Language names usually consist of language code, undercore
* symbol and country code
* @global string $squirrelmail_default_language
*/
/**
* Alternative Language Names Control
*
- * This options allows displaying native language names in language
+ * This options allows displaying native language names in language
* selection box.
* @global bool $show_alternative_names
* @since 1.5.0
/**
* Aggressive Decoding Control
*
- * This option enables reading of Eastern multibyte encodings.
+ * This option enables reading of Eastern multibyte encodings.
* Functions that provide this support are very cpu and memory intensive.
* Don't enable this option unless you really need it.
* @global bool $aggressive_decoding
/**
* Lossy Encoding Control
*
- * This option allows charset conversions when output charset does not support
- * all symbols used in original charset. Symbols unsupported by output charset
+ * This option allows charset conversions when output charset does not support
+ * all symbols used in original charset. Symbols unsupported by output charset
* will be replaced with question marks.
* @global bool $lossy_encoding
* @since 1.5.1
/*** Tweaks ***/
/**
- * Advanced DHTML tree control
+ * Advanced DHTML tree control
*
* Use experimental DHTML folder listing
* @global bool $advanced_tree
* Use experimental code with php recode functions when reading messages with
* different encoding. This code is faster that original SM functions,
* but it require php with recode support.
- *
- * Don't enable this option if you are not sure about availability of
+ *
+ * Don't enable this option if you are not sure about availability of
* recode support.
* @global bool $use_php_recode
* @since 1.5.0
* Use experimental code with php iconv functions when reading messages with
* different encoding. This code is faster that original SM functions,
* but it require php with iconv support and works only with some translations.
- *
- * Don't enable this option if you are not sure about availability of
+ *
+ * Don't enable this option if you are not sure about availability of
* iconv support.
* @global bool $use_php_iconv
* @since 1.5.0
* generate the folder subscribe listbox (this can take a long time
* when you have a lot of folders). Instead, a textbox will be
* displayed allowing users to enter a specific folder name to subscribe to
- *
+ *
* This option can't be changed by conf.pl
* @global bool $no_list_for_subscribe
*/
* Color in config control
*
* This option is used only by conf.pl script to generate configuration
- * menu with some colors and is provided here only as reference.
+ * menu with some colors and is provided here only as reference.
* @global integer $config_use_color
*/
$config_use_color = 2;
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
-?>
+?>
\ No newline at end of file
*
* You can override the config.php settings here.
* Don't do it unless you know what you're doing.
- * Use standard PHP syntax, see config.php for examples.
+ * Use standard PHP syntax, see config.php for examples.
*
* @package squirrelmail
* @subpackage config
*/
-?>
+?>
\ No newline at end of file
/* pretty impressive huh? */
-?>
+?>
\ No newline at end of file
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
-?>
+?>
\ No newline at end of file
/* pretty impressive huh? */
-?>
+?>
\ No newline at end of file
return false;
}
- if(isset($this->listing) && !$this->listing) {
- return array();
- }
+ if(isset($this->listing) && !$this->listing) {
+ return array();
+ }
$query = sprintf("SELECT * FROM %s WHERE owner='%s'",
* ? create => if true: file is created if it does not exist.
* ? umask => umask set before opening file.
* ? name => name of address book.
- * ? detect_writeable => detect address book access permissions by
+ * ? detect_writeable => detect address book access permissions by
* checking file permissions.
* ? writeable => allow writing into address book. Used only when
* detect_writeable is set to false.
class abook_local_file extends addressbook_backend {
/**
* Backend type
- * @var string
+ * @var string
*/
var $btype = 'local';
/**
/* This would be for the global addressbook */
if (isset($abook_global_file) && isset($abook_global_file_writeable)
- && trim($abook_global_file)!=''){
+ && trim($abook_global_file)!=''){
// Detect place of address book
if (! preg_match("/[\/\\\]/",$abook_global_file)) {
// no path chars
}
/**
- * Create a new address
+ * Create a new address
* @param array $userdata added address record
* @param integer $bnum backend number
* @return integer the backend number that the/ address was added
/**
* Remove the entries from address book
- * @param mixed $alias entries that have to be removed. Can be string with nickname or array with list of nicknames
+ * @param mixed $alias entries that have to be removed. Can be string with nickname or array with list of nicknames
* @param integer $bnum backend number
* @return bool true if removed successfully. false if there s an error. $this->error contains error message
*/
return;
} else {
global $PHP_SELF, $session_expired_post,
- $session_expired_location, $squirrelmail_language;
+ $session_expired_location, $squirrelmail_language;
/* First we store some information in the new session to prevent
* information-loss.
*/
- $session_expired_post = $_POST;
+ $session_expired_post = $_POST;
$session_expired_location = $PHP_SELF;
if (!sqsession_is_registered('session_expired_post')) {
sqsession_register($session_expired_post,'session_expired_post');
/* This can be auth (authentication only), auth-int (integrity protection), or
auth-conf (confidentiality protection). Right now only auth is supported.
- DO NOT CHANGE THIS VALUE */
+ DO NOT CHANGE THIS VALUE */
$qop_value = "auth";
$digest_uri_value = $service . '/' . $host;
// We're in a "simple" value - explode to next comma
$val=explode(',',$challenge,2);
if (isset($val[1])) {
- $challenge=$val[1];
- } else {
- unset($challenge);
- }
+ $challenge=$val[1];
+ } else {
+ unset($challenge);
+ }
$value=$val[0];
}
$parsed["$key"]=$value;
$aParts = explode('#',$ret);
$ret = str_replace(array('$1','$4','$2','$3',), array(getDayAbrv($aParts[0]),
getMonthAbrv($aParts[1]),
- getMonthName($aParts[1]),
- getDayName($aParts[0])),
- $aParts[2]);
+ getMonthName($aParts[1]),
+ getDayName($aParts[0])),
+ $aParts[2]);
return( $ret );
}
return ($mtime);
}
*/
-?>
+?>
\ No newline at end of file
*
* This file contains cp1250 decoding function that is needed to read
* cp1250 encoded mails in non-cp1250 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT
*
return $string;
$cp1250 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => '�',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => '�',
- "\x89" => '‰',
- "\x8A" => 'Š',
- "\x8B" => '‹',
- "\x8C" => 'Ś',
- "\x8D" => 'Ť',
- "\x8E" => 'Ž',
- "\x8F" => 'Ź',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '�',
- "\x99" => '™',
- "\x9A" => 'š',
- "\x9B" => '›',
- "\x9C" => 'ś',
- "\x9D" => 'ť',
- "\x9E" => 'ž',
- "\x9F" => 'ź',
- "\xA0" => ' ',
- "\xA1" => 'ˇ',
- "\xA2" => '˘',
- "\xA3" => 'Ł',
- "\xA4" => '¤',
- "\xA5" => 'Ą',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'Ş',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => 'Ż',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '˛',
- "\xB3" => 'ł',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => 'ą',
- "\xBA" => 'ş',
- "\xBB" => '»',
- "\xBC" => 'Ľ',
- "\xBD" => '˝',
- "\xBE" => 'ľ',
- "\xBF" => 'ż',
- "\xC0" => 'Ŕ',
- "\xC1" => 'Á',
- "\xC2" => 'Â',
- "\xC3" => 'Ă',
- "\xC4" => 'Ä',
- "\xC5" => 'Ĺ',
- "\xC6" => 'Ć',
- "\xC7" => 'Ç',
- "\xC8" => 'Č',
- "\xC9" => 'É',
- "\xCA" => 'Ę',
- "\xCB" => 'Ë',
- "\xCC" => 'Ě',
- "\xCD" => 'Í',
- "\xCE" => 'Î',
- "\xCF" => 'Ď',
- "\xD0" => 'Đ',
- "\xD1" => 'Ń',
- "\xD2" => 'Ň',
- "\xD3" => 'Ó',
- "\xD4" => 'Ô',
- "\xD5" => 'Ő',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ř',
- "\xD9" => 'Ů',
- "\xDA" => 'Ú',
- "\xDB" => 'Ű',
- "\xDC" => 'Ü',
- "\xDD" => 'Ý',
- "\xDE" => 'Ţ',
- "\xDF" => 'ß',
- "\xE0" => 'ŕ',
- "\xE1" => 'á',
- "\xE2" => 'â',
- "\xE3" => 'ă',
- "\xE4" => 'ä',
- "\xE5" => 'ĺ',
- "\xE6" => 'ć',
- "\xE7" => 'ç',
- "\xE8" => 'č',
- "\xE9" => 'é',
- "\xEA" => 'ę',
- "\xEB" => 'ë',
- "\xEC" => 'ě',
- "\xED" => 'í',
- "\xEE" => 'î',
- "\xEF" => 'ď',
- "\xF0" => 'đ',
- "\xF1" => 'ń',
- "\xF2" => 'ň',
- "\xF3" => 'ó',
- "\xF4" => 'ô',
- "\xF5" => 'ő',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ř',
- "\xF9" => 'ů',
- "\xFA" => 'ú',
- "\xFB" => 'ű',
- "\xFC" => 'ü',
- "\xFD" => 'ý',
- "\xFE" => 'ţ',
- "\xFF" => '˙'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => '�',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => '�',
+ "\x89" => '‰',
+ "\x8A" => 'Š',
+ "\x8B" => '‹',
+ "\x8C" => 'Ś',
+ "\x8D" => 'Ť',
+ "\x8E" => 'Ž',
+ "\x8F" => 'Ź',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '�',
+ "\x99" => '™',
+ "\x9A" => 'š',
+ "\x9B" => '›',
+ "\x9C" => 'ś',
+ "\x9D" => 'ť',
+ "\x9E" => 'ž',
+ "\x9F" => 'ź',
+ "\xA0" => ' ',
+ "\xA1" => 'ˇ',
+ "\xA2" => '˘',
+ "\xA3" => 'Ł',
+ "\xA4" => '¤',
+ "\xA5" => 'Ą',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'Ş',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => 'Ż',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '˛',
+ "\xB3" => 'ł',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => 'ą',
+ "\xBA" => 'ş',
+ "\xBB" => '»',
+ "\xBC" => 'Ľ',
+ "\xBD" => '˝',
+ "\xBE" => 'ľ',
+ "\xBF" => 'ż',
+ "\xC0" => 'Ŕ',
+ "\xC1" => 'Á',
+ "\xC2" => 'Â',
+ "\xC3" => 'Ă',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Ĺ',
+ "\xC6" => 'Ć',
+ "\xC7" => 'Ç',
+ "\xC8" => 'Č',
+ "\xC9" => 'É',
+ "\xCA" => 'Ę',
+ "\xCB" => 'Ë',
+ "\xCC" => 'Ě',
+ "\xCD" => 'Í',
+ "\xCE" => 'Î',
+ "\xCF" => 'Ď',
+ "\xD0" => 'Đ',
+ "\xD1" => 'Ń',
+ "\xD2" => 'Ň',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ô',
+ "\xD5" => 'Ő',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ř',
+ "\xD9" => 'Ů',
+ "\xDA" => 'Ú',
+ "\xDB" => 'Ű',
+ "\xDC" => 'Ü',
+ "\xDD" => 'Ý',
+ "\xDE" => 'Ţ',
+ "\xDF" => 'ß',
+ "\xE0" => 'ŕ',
+ "\xE1" => 'á',
+ "\xE2" => 'â',
+ "\xE3" => 'ă',
+ "\xE4" => 'ä',
+ "\xE5" => 'ĺ',
+ "\xE6" => 'ć',
+ "\xE7" => 'ç',
+ "\xE8" => 'č',
+ "\xE9" => 'é',
+ "\xEA" => 'ę',
+ "\xEB" => 'ë',
+ "\xEC" => 'ě',
+ "\xED" => 'í',
+ "\xEE" => 'î',
+ "\xEF" => 'ď',
+ "\xF0" => 'đ',
+ "\xF1" => 'ń',
+ "\xF2" => 'ň',
+ "\xF3" => 'ó',
+ "\xF4" => 'ô',
+ "\xF5" => 'ő',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ř',
+ "\xF9" => 'ů',
+ "\xFA" => 'ú',
+ "\xFB" => 'ű',
+ "\xFC" => 'ü',
+ "\xFD" => 'ý',
+ "\xFE" => 'ţ',
+ "\xFF" => '˙'
);
$string = str_replace(array_keys($cp1250), array_values($cp1250), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1251 decoding function that is needed to read
* cp1251 encoded mails in non-cp1251 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT
*
return $string;
$cp1251 = array(
- "\x80" => 'Ђ',
- "\x81" => 'Ѓ',
- "\x82" => '‚',
- "\x83" => 'ѓ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => '€',
- "\x89" => '‰',
- "\x8A" => 'Љ',
- "\x8B" => '‹',
- "\x8C" => 'Њ',
- "\x8D" => 'Ќ',
- "\x8E" => 'Ћ',
- "\x8F" => 'Џ',
- "\x90" => 'ђ',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '�',
- "\x99" => '™',
- "\x9A" => 'љ',
- "\x9B" => '›',
- "\x9C" => 'њ',
- "\x9D" => 'ќ',
- "\x9E" => 'ћ',
- "\x9F" => 'џ',
- "\xA0" => ' ',
- "\xA1" => 'Ў',
- "\xA2" => 'ў',
- "\xA3" => 'Ј',
- "\xA4" => '¤',
- "\xA5" => 'Ґ',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => 'Ё',
- "\xA9" => '©',
- "\xAA" => 'Є',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => 'Ї',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => 'І',
- "\xB3" => 'і',
- "\xB4" => 'ґ',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => 'ё',
- "\xB9" => '№',
- "\xBA" => 'є',
- "\xBB" => '»',
- "\xBC" => 'ј',
- "\xBD" => 'Ѕ',
- "\xBE" => 'ѕ',
- "\xBF" => 'ї',
- "\xC0" => 'А',
- "\xC1" => 'Б',
- "\xC2" => 'В',
- "\xC3" => 'Г',
- "\xC4" => 'Д',
- "\xC5" => 'Е',
- "\xC6" => 'Ж',
- "\xC7" => 'З',
- "\xC8" => 'И',
- "\xC9" => 'Й',
- "\xCA" => 'К',
- "\xCB" => 'Л',
- "\xCC" => 'М',
- "\xCD" => 'Н',
- "\xCE" => 'О',
- "\xCF" => 'П',
- "\xD0" => 'Р',
- "\xD1" => 'С',
- "\xD2" => 'Т',
- "\xD3" => 'У',
- "\xD4" => 'Ф',
- "\xD5" => 'Х',
- "\xD6" => 'Ц',
- "\xD7" => 'Ч',
- "\xD8" => 'Ш',
- "\xD9" => 'Щ',
- "\xDA" => 'Ъ',
- "\xDB" => 'Ы',
- "\xDC" => 'Ь',
- "\xDD" => 'Э',
- "\xDE" => 'Ю',
- "\xDF" => 'Я',
- "\xE0" => 'а',
- "\xE1" => 'б',
- "\xE2" => 'в',
- "\xE3" => 'г',
- "\xE4" => 'д',
- "\xE5" => 'е',
- "\xE6" => 'ж',
- "\xE7" => 'з',
- "\xE8" => 'и',
- "\xE9" => 'й',
- "\xEA" => 'к',
- "\xEB" => 'л',
- "\xEC" => 'м',
- "\xED" => 'н',
- "\xEE" => 'о',
- "\xEF" => 'п',
- "\xF0" => 'р',
- "\xF1" => 'с',
- "\xF2" => 'т',
- "\xF3" => 'у',
- "\xF4" => 'ф',
- "\xF5" => 'х',
- "\xF6" => 'ц',
- "\xF7" => 'ч',
- "\xF8" => 'ш',
- "\xF9" => 'щ',
- "\xFA" => 'ъ',
- "\xFB" => 'ы',
- "\xFC" => 'ь',
- "\xFD" => 'э',
- "\xFE" => 'ю',
- "\xFF" => 'я'
+ "\x80" => 'Ђ',
+ "\x81" => 'Ѓ',
+ "\x82" => '‚',
+ "\x83" => 'ѓ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => '€',
+ "\x89" => '‰',
+ "\x8A" => 'Љ',
+ "\x8B" => '‹',
+ "\x8C" => 'Њ',
+ "\x8D" => 'Ќ',
+ "\x8E" => 'Ћ',
+ "\x8F" => 'Џ',
+ "\x90" => 'ђ',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '�',
+ "\x99" => '™',
+ "\x9A" => 'љ',
+ "\x9B" => '›',
+ "\x9C" => 'њ',
+ "\x9D" => 'ќ',
+ "\x9E" => 'ћ',
+ "\x9F" => 'џ',
+ "\xA0" => ' ',
+ "\xA1" => 'Ў',
+ "\xA2" => 'ў',
+ "\xA3" => 'Ј',
+ "\xA4" => '¤',
+ "\xA5" => 'Ґ',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => 'Ё',
+ "\xA9" => '©',
+ "\xAA" => 'Є',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => 'Ї',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => 'І',
+ "\xB3" => 'і',
+ "\xB4" => 'ґ',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => 'ё',
+ "\xB9" => '№',
+ "\xBA" => 'є',
+ "\xBB" => '»',
+ "\xBC" => 'ј',
+ "\xBD" => 'Ѕ',
+ "\xBE" => 'ѕ',
+ "\xBF" => 'ї',
+ "\xC0" => 'А',
+ "\xC1" => 'Б',
+ "\xC2" => 'В',
+ "\xC3" => 'Г',
+ "\xC4" => 'Д',
+ "\xC5" => 'Е',
+ "\xC6" => 'Ж',
+ "\xC7" => 'З',
+ "\xC8" => 'И',
+ "\xC9" => 'Й',
+ "\xCA" => 'К',
+ "\xCB" => 'Л',
+ "\xCC" => 'М',
+ "\xCD" => 'Н',
+ "\xCE" => 'О',
+ "\xCF" => 'П',
+ "\xD0" => 'Р',
+ "\xD1" => 'С',
+ "\xD2" => 'Т',
+ "\xD3" => 'У',
+ "\xD4" => 'Ф',
+ "\xD5" => 'Х',
+ "\xD6" => 'Ц',
+ "\xD7" => 'Ч',
+ "\xD8" => 'Ш',
+ "\xD9" => 'Щ',
+ "\xDA" => 'Ъ',
+ "\xDB" => 'Ы',
+ "\xDC" => 'Ь',
+ "\xDD" => 'Э',
+ "\xDE" => 'Ю',
+ "\xDF" => 'Я',
+ "\xE0" => 'а',
+ "\xE1" => 'б',
+ "\xE2" => 'в',
+ "\xE3" => 'г',
+ "\xE4" => 'д',
+ "\xE5" => 'е',
+ "\xE6" => 'ж',
+ "\xE7" => 'з',
+ "\xE8" => 'и',
+ "\xE9" => 'й',
+ "\xEA" => 'к',
+ "\xEB" => 'л',
+ "\xEC" => 'м',
+ "\xED" => 'н',
+ "\xEE" => 'о',
+ "\xEF" => 'п',
+ "\xF0" => 'р',
+ "\xF1" => 'с',
+ "\xF2" => 'т',
+ "\xF3" => 'у',
+ "\xF4" => 'ф',
+ "\xF5" => 'х',
+ "\xF6" => 'ц',
+ "\xF7" => 'ч',
+ "\xF8" => 'ш',
+ "\xF9" => 'щ',
+ "\xFA" => 'ъ',
+ "\xFB" => 'ы',
+ "\xFC" => 'ь',
+ "\xFD" => 'э',
+ "\xFE" => 'ю',
+ "\xFF" => 'я'
);
$string = str_replace(array_keys($cp1251), array_values($cp1251), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1252 decoding function that is needed to read
* cp1252 encoded mails in non-cp1252 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT
*
return $string;
$cp1252 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => 'ˆ',
- "\x89" => '‰',
- "\x8A" => 'Š',
- "\x8B" => '‹',
- "\x8C" => 'Œ',
- "\x8D" => '�',
- "\x8E" => 'Ž',
- "\x8F" => '�',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '˜',
- "\x99" => '™',
- "\x9A" => 'š',
- "\x9B" => '›',
- "\x9C" => 'œ',
- "\x9D" => '�',
- "\x9E" => 'ž',
- "\x9F" => 'Ÿ',
- "\xA0" => ' ',
- "\xA1" => '¡',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'ª',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => 'º',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '¿',
- "\xC0" => 'À',
- "\xC1" => 'Á',
- "\xC2" => 'Â',
- "\xC3" => 'Ã',
- "\xC4" => 'Ä',
- "\xC5" => 'Å',
- "\xC6" => 'Æ',
- "\xC7" => 'Ç',
- "\xC8" => 'È',
- "\xC9" => 'É',
- "\xCA" => 'Ê',
- "\xCB" => 'Ë',
- "\xCC" => 'Ì',
- "\xCD" => 'Í',
- "\xCE" => 'Î',
- "\xCF" => 'Ï',
- "\xD0" => 'Ð',
- "\xD1" => 'Ñ',
- "\xD2" => 'Ò',
- "\xD3" => 'Ó',
- "\xD4" => 'Ô',
- "\xD5" => 'Õ',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ø',
- "\xD9" => 'Ù',
- "\xDA" => 'Ú',
- "\xDB" => 'Û',
- "\xDC" => 'Ü',
- "\xDD" => 'Ý',
- "\xDE" => 'Þ',
- "\xDF" => 'ß',
- "\xE0" => 'à',
- "\xE1" => 'á',
- "\xE2" => 'â',
- "\xE3" => 'ã',
- "\xE4" => 'ä',
- "\xE5" => 'å',
- "\xE6" => 'æ',
- "\xE7" => 'ç',
- "\xE8" => 'è',
- "\xE9" => 'é',
- "\xEA" => 'ê',
- "\xEB" => 'ë',
- "\xEC" => 'ì',
- "\xED" => 'í',
- "\xEE" => 'î',
- "\xEF" => 'ï',
- "\xF0" => 'ð',
- "\xF1" => 'ñ',
- "\xF2" => 'ò',
- "\xF3" => 'ó',
- "\xF4" => 'ô',
- "\xF5" => 'õ',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ø',
- "\xF9" => 'ù',
- "\xFA" => 'ú',
- "\xFB" => 'û',
- "\xFC" => 'ü',
- "\xFD" => 'ý',
- "\xFE" => 'þ',
- "\xFF" => 'ÿ'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => 'ˆ',
+ "\x89" => '‰',
+ "\x8A" => 'Š',
+ "\x8B" => '‹',
+ "\x8C" => 'Œ',
+ "\x8D" => '�',
+ "\x8E" => 'Ž',
+ "\x8F" => '�',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '˜',
+ "\x99" => '™',
+ "\x9A" => 'š',
+ "\x9B" => '›',
+ "\x9C" => 'œ',
+ "\x9D" => '�',
+ "\x9E" => 'ž',
+ "\x9F" => 'Ÿ',
+ "\xA0" => ' ',
+ "\xA1" => '¡',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'ª',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => 'º',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '¿',
+ "\xC0" => 'À',
+ "\xC1" => 'Á',
+ "\xC2" => 'Â',
+ "\xC3" => 'Ã',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Å',
+ "\xC6" => 'Æ',
+ "\xC7" => 'Ç',
+ "\xC8" => 'È',
+ "\xC9" => 'É',
+ "\xCA" => 'Ê',
+ "\xCB" => 'Ë',
+ "\xCC" => 'Ì',
+ "\xCD" => 'Í',
+ "\xCE" => 'Î',
+ "\xCF" => 'Ï',
+ "\xD0" => 'Ð',
+ "\xD1" => 'Ñ',
+ "\xD2" => 'Ò',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ô',
+ "\xD5" => 'Õ',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ø',
+ "\xD9" => 'Ù',
+ "\xDA" => 'Ú',
+ "\xDB" => 'Û',
+ "\xDC" => 'Ü',
+ "\xDD" => 'Ý',
+ "\xDE" => 'Þ',
+ "\xDF" => 'ß',
+ "\xE0" => 'à',
+ "\xE1" => 'á',
+ "\xE2" => 'â',
+ "\xE3" => 'ã',
+ "\xE4" => 'ä',
+ "\xE5" => 'å',
+ "\xE6" => 'æ',
+ "\xE7" => 'ç',
+ "\xE8" => 'è',
+ "\xE9" => 'é',
+ "\xEA" => 'ê',
+ "\xEB" => 'ë',
+ "\xEC" => 'ì',
+ "\xED" => 'í',
+ "\xEE" => 'î',
+ "\xEF" => 'ï',
+ "\xF0" => 'ð',
+ "\xF1" => 'ñ',
+ "\xF2" => 'ò',
+ "\xF3" => 'ó',
+ "\xF4" => 'ô',
+ "\xF5" => 'õ',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ø',
+ "\xF9" => 'ù',
+ "\xFA" => 'ú',
+ "\xFB" => 'û',
+ "\xFC" => 'ü',
+ "\xFD" => 'ý',
+ "\xFE" => 'þ',
+ "\xFF" => 'ÿ'
);
$string = str_replace(array_keys($cp1252), array_values($cp1252), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1253 decoding function that is needed to read
* cp1253 encoded mails in non-cp1253 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT
*
return $string;
$cp1253 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => '�',
- "\x89" => '‰',
- "\x8A" => '�',
- "\x8B" => '‹',
- "\x8C" => '�',
- "\x8D" => '�',
- "\x8E" => '�',
- "\x8F" => '�',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '�',
- "\x99" => '™',
- "\x9A" => '�',
- "\x9B" => '›',
- "\x9C" => '�',
- "\x9D" => '�',
- "\x9E" => '�',
- "\x9F" => '�',
- "\xA0" => ' ',
- "\xA1" => '΅',
- "\xA2" => 'Ά',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => '�',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '―',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '΄',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => 'Έ',
- "\xB9" => 'Ή',
- "\xBA" => 'Ί',
- "\xBB" => '»',
- "\xBC" => 'Ό',
- "\xBD" => '½',
- "\xBE" => 'Ύ',
- "\xBF" => 'Ώ',
- "\xC0" => 'ΐ',
- "\xC1" => 'Α',
- "\xC2" => 'Β',
- "\xC3" => 'Γ',
- "\xC4" => 'Δ',
- "\xC5" => 'Ε',
- "\xC6" => 'Ζ',
- "\xC7" => 'Η',
- "\xC8" => 'Θ',
- "\xC9" => 'Ι',
- "\xCA" => 'Κ',
- "\xCB" => 'Λ',
- "\xCC" => 'Μ',
- "\xCD" => 'Ν',
- "\xCE" => 'Ξ',
- "\xCF" => 'Ο',
- "\xD0" => 'Π',
- "\xD1" => 'Ρ',
- "\xD2" => '�',
- "\xD3" => 'Σ',
- "\xD4" => 'Τ',
- "\xD5" => 'Υ',
- "\xD6" => 'Φ',
- "\xD7" => 'Χ',
- "\xD8" => 'Ψ',
- "\xD9" => 'Ω',
- "\xDA" => 'Ϊ',
- "\xDB" => 'Ϋ',
- "\xDC" => 'ά',
- "\xDD" => 'έ',
- "\xDE" => 'ή',
- "\xDF" => 'ί',
- "\xE0" => 'ΰ',
- "\xE1" => 'α',
- "\xE2" => 'β',
- "\xE3" => 'γ',
- "\xE4" => 'δ',
- "\xE5" => 'ε',
- "\xE6" => 'ζ',
- "\xE7" => 'η',
- "\xE8" => 'θ',
- "\xE9" => 'ι',
- "\xEA" => 'κ',
- "\xEB" => 'λ',
- "\xEC" => 'μ',
- "\xED" => 'ν',
- "\xEE" => 'ξ',
- "\xEF" => 'ο',
- "\xF0" => 'π',
- "\xF1" => 'ρ',
- "\xF2" => 'ς',
- "\xF3" => 'σ',
- "\xF4" => 'τ',
- "\xF5" => 'υ',
- "\xF6" => 'φ',
- "\xF7" => 'χ',
- "\xF8" => 'ψ',
- "\xF9" => 'ω',
- "\xFA" => 'ϊ',
- "\xFB" => 'ϋ',
- "\xFC" => 'ό',
- "\xFD" => 'ύ',
- "\xFE" => 'ώ',
- "\xFF" => '�'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => '�',
+ "\x89" => '‰',
+ "\x8A" => '�',
+ "\x8B" => '‹',
+ "\x8C" => '�',
+ "\x8D" => '�',
+ "\x8E" => '�',
+ "\x8F" => '�',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '�',
+ "\x99" => '™',
+ "\x9A" => '�',
+ "\x9B" => '›',
+ "\x9C" => '�',
+ "\x9D" => '�',
+ "\x9E" => '�',
+ "\x9F" => '�',
+ "\xA0" => ' ',
+ "\xA1" => '΅',
+ "\xA2" => 'Ά',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => '�',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '―',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '΄',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => 'Έ',
+ "\xB9" => 'Ή',
+ "\xBA" => 'Ί',
+ "\xBB" => '»',
+ "\xBC" => 'Ό',
+ "\xBD" => '½',
+ "\xBE" => 'Ύ',
+ "\xBF" => 'Ώ',
+ "\xC0" => 'ΐ',
+ "\xC1" => 'Α',
+ "\xC2" => 'Β',
+ "\xC3" => 'Γ',
+ "\xC4" => 'Δ',
+ "\xC5" => 'Ε',
+ "\xC6" => 'Ζ',
+ "\xC7" => 'Η',
+ "\xC8" => 'Θ',
+ "\xC9" => 'Ι',
+ "\xCA" => 'Κ',
+ "\xCB" => 'Λ',
+ "\xCC" => 'Μ',
+ "\xCD" => 'Ν',
+ "\xCE" => 'Ξ',
+ "\xCF" => 'Ο',
+ "\xD0" => 'Π',
+ "\xD1" => 'Ρ',
+ "\xD2" => '�',
+ "\xD3" => 'Σ',
+ "\xD4" => 'Τ',
+ "\xD5" => 'Υ',
+ "\xD6" => 'Φ',
+ "\xD7" => 'Χ',
+ "\xD8" => 'Ψ',
+ "\xD9" => 'Ω',
+ "\xDA" => 'Ϊ',
+ "\xDB" => 'Ϋ',
+ "\xDC" => 'ά',
+ "\xDD" => 'έ',
+ "\xDE" => 'ή',
+ "\xDF" => 'ί',
+ "\xE0" => 'ΰ',
+ "\xE1" => 'α',
+ "\xE2" => 'β',
+ "\xE3" => 'γ',
+ "\xE4" => 'δ',
+ "\xE5" => 'ε',
+ "\xE6" => 'ζ',
+ "\xE7" => 'η',
+ "\xE8" => 'θ',
+ "\xE9" => 'ι',
+ "\xEA" => 'κ',
+ "\xEB" => 'λ',
+ "\xEC" => 'μ',
+ "\xED" => 'ν',
+ "\xEE" => 'ξ',
+ "\xEF" => 'ο',
+ "\xF0" => 'π',
+ "\xF1" => 'ρ',
+ "\xF2" => 'ς',
+ "\xF3" => 'σ',
+ "\xF4" => 'τ',
+ "\xF5" => 'υ',
+ "\xF6" => 'φ',
+ "\xF7" => 'χ',
+ "\xF8" => 'ψ',
+ "\xF9" => 'ω',
+ "\xFA" => 'ϊ',
+ "\xFB" => 'ϋ',
+ "\xFC" => 'ό',
+ "\xFD" => 'ύ',
+ "\xFE" => 'ώ',
+ "\xFF" => '�'
);
$string = str_replace(array_keys($cp1253), array_values($cp1253), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1254 decoding function that is needed to read
* cp1254 encoded mails in non-cp1254 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT
*
return $string;
$cp1254 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => 'ˆ',
- "\x89" => '‰',
- "\x8A" => 'Š',
- "\x8B" => '‹',
- "\x8C" => 'Œ',
- "\x8D" => '�',
- "\x8E" => '�',
- "\x8F" => '�',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '˜',
- "\x99" => '™',
- "\x9A" => 'š',
- "\x9B" => '›',
- "\x9C" => 'œ',
- "\x9D" => '�',
- "\x9E" => '�',
- "\x9F" => 'Ÿ',
- "\xA0" => ' ',
- "\xA1" => '¡',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'ª',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => 'º',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '¿',
- "\xC0" => 'À',
- "\xC1" => 'Á',
- "\xC2" => 'Â',
- "\xC3" => 'Ã',
- "\xC4" => 'Ä',
- "\xC5" => 'Å',
- "\xC6" => 'Æ',
- "\xC7" => 'Ç',
- "\xC8" => 'È',
- "\xC9" => 'É',
- "\xCA" => 'Ê',
- "\xCB" => 'Ë',
- "\xCC" => 'Ì',
- "\xCD" => 'Í',
- "\xCE" => 'Î',
- "\xCF" => 'Ï',
- "\xD0" => 'Ğ',
- "\xD1" => 'Ñ',
- "\xD2" => 'Ò',
- "\xD3" => 'Ó',
- "\xD4" => 'Ô',
- "\xD5" => 'Õ',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ø',
- "\xD9" => 'Ù',
- "\xDA" => 'Ú',
- "\xDB" => 'Û',
- "\xDC" => 'Ü',
- "\xDD" => 'İ',
- "\xDE" => 'Ş',
- "\xDF" => 'ß',
- "\xE0" => 'à',
- "\xE1" => 'á',
- "\xE2" => 'â',
- "\xE3" => 'ã',
- "\xE4" => 'ä',
- "\xE5" => 'å',
- "\xE6" => 'æ',
- "\xE7" => 'ç',
- "\xE8" => 'è',
- "\xE9" => 'é',
- "\xEA" => 'ê',
- "\xEB" => 'ë',
- "\xEC" => 'ì',
- "\xED" => 'í',
- "\xEE" => 'î',
- "\xEF" => 'ï',
- "\xF0" => 'ğ',
- "\xF1" => 'ñ',
- "\xF2" => 'ò',
- "\xF3" => 'ó',
- "\xF4" => 'ô',
- "\xF5" => 'õ',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ø',
- "\xF9" => 'ù',
- "\xFA" => 'ú',
- "\xFB" => 'û',
- "\xFC" => 'ü',
- "\xFD" => 'ı',
- "\xFE" => 'ş',
- "\xFF" => 'ÿ'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => 'ˆ',
+ "\x89" => '‰',
+ "\x8A" => 'Š',
+ "\x8B" => '‹',
+ "\x8C" => 'Œ',
+ "\x8D" => '�',
+ "\x8E" => '�',
+ "\x8F" => '�',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '˜',
+ "\x99" => '™',
+ "\x9A" => 'š',
+ "\x9B" => '›',
+ "\x9C" => 'œ',
+ "\x9D" => '�',
+ "\x9E" => '�',
+ "\x9F" => 'Ÿ',
+ "\xA0" => ' ',
+ "\xA1" => '¡',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'ª',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => 'º',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '¿',
+ "\xC0" => 'À',
+ "\xC1" => 'Á',
+ "\xC2" => 'Â',
+ "\xC3" => 'Ã',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Å',
+ "\xC6" => 'Æ',
+ "\xC7" => 'Ç',
+ "\xC8" => 'È',
+ "\xC9" => 'É',
+ "\xCA" => 'Ê',
+ "\xCB" => 'Ë',
+ "\xCC" => 'Ì',
+ "\xCD" => 'Í',
+ "\xCE" => 'Î',
+ "\xCF" => 'Ï',
+ "\xD0" => 'Ğ',
+ "\xD1" => 'Ñ',
+ "\xD2" => 'Ò',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ô',
+ "\xD5" => 'Õ',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ø',
+ "\xD9" => 'Ù',
+ "\xDA" => 'Ú',
+ "\xDB" => 'Û',
+ "\xDC" => 'Ü',
+ "\xDD" => 'İ',
+ "\xDE" => 'Ş',
+ "\xDF" => 'ß',
+ "\xE0" => 'à',
+ "\xE1" => 'á',
+ "\xE2" => 'â',
+ "\xE3" => 'ã',
+ "\xE4" => 'ä',
+ "\xE5" => 'å',
+ "\xE6" => 'æ',
+ "\xE7" => 'ç',
+ "\xE8" => 'è',
+ "\xE9" => 'é',
+ "\xEA" => 'ê',
+ "\xEB" => 'ë',
+ "\xEC" => 'ì',
+ "\xED" => 'í',
+ "\xEE" => 'î',
+ "\xEF" => 'ï',
+ "\xF0" => 'ğ',
+ "\xF1" => 'ñ',
+ "\xF2" => 'ò',
+ "\xF3" => 'ó',
+ "\xF4" => 'ô',
+ "\xF5" => 'õ',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ø',
+ "\xF9" => 'ù',
+ "\xFA" => 'ú',
+ "\xFB" => 'û',
+ "\xFC" => 'ü',
+ "\xFD" => 'ı',
+ "\xFE" => 'ş',
+ "\xFF" => 'ÿ'
);
$string = str_replace(array_keys($cp1254), array_values($cp1254), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1255 decoding function that is needed to read
* cp1255 encoded mails in non-cp1255 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT
*
return $string;
$cp1255 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => 'ˆ',
- "\x89" => '‰',
- "\x8A" => '�',
- "\x8B" => '‹',
- "\x8C" => '�',
- "\x8D" => '�',
- "\x8E" => '�',
- "\x8F" => '�',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '˜',
- "\x99" => '™',
- "\x9A" => '�',
- "\x9B" => '›',
- "\x9C" => '�',
- "\x9D" => '�',
- "\x9E" => '�',
- "\x9F" => '�',
- "\xA0" => ' ',
- "\xA1" => '¡',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '₪',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => '×',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => '÷',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '¿',
- "\xC0" => 'ְ',
- "\xC1" => 'ֱ',
- "\xC2" => 'ֲ',
- "\xC3" => 'ֳ',
- "\xC4" => 'ִ',
- "\xC5" => 'ֵ',
- "\xC6" => 'ֶ',
- "\xC7" => 'ַ',
- "\xC8" => 'ָ',
- "\xC9" => 'ֹ',
- "\xCA" => '�',
- "\xCB" => 'ֻ',
- "\xCC" => 'ּ',
- "\xCD" => 'ֽ',
- "\xCE" => '־',
- "\xCF" => 'ֿ',
- "\xD0" => '׀',
- "\xD1" => 'ׁ',
- "\xD2" => 'ׂ',
- "\xD3" => '׃',
- "\xD4" => 'װ',
- "\xD5" => 'ױ',
- "\xD6" => 'ײ',
- "\xD7" => '׳',
- "\xD8" => '״',
- "\xD9" => '�',
- "\xDA" => '�',
- "\xDB" => '�',
- "\xDC" => '�',
- "\xDD" => '�',
- "\xDE" => '�',
- "\xDF" => '�',
- "\xE0" => 'א',
- "\xE1" => 'ב',
- "\xE2" => 'ג',
- "\xE3" => 'ד',
- "\xE4" => 'ה',
- "\xE5" => 'ו',
- "\xE6" => 'ז',
- "\xE7" => 'ח',
- "\xE8" => 'ט',
- "\xE9" => 'י',
- "\xEA" => 'ך',
- "\xEB" => 'כ',
- "\xEC" => 'ל',
- "\xED" => 'ם',
- "\xEE" => 'מ',
- "\xEF" => 'ן',
- "\xF0" => 'נ',
- "\xF1" => 'ס',
- "\xF2" => 'ע',
- "\xF3" => 'ף',
- "\xF4" => 'פ',
- "\xF5" => 'ץ',
- "\xF6" => 'צ',
- "\xF7" => 'ק',
- "\xF8" => 'ר',
- "\xF9" => 'ש',
- "\xFA" => 'ת',
- "\xFB" => '�',
- "\xFC" => '�',
- "\xFD" => '‎',
- "\xFE" => '‏',
- "\xFF" => '�'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => 'ˆ',
+ "\x89" => '‰',
+ "\x8A" => '�',
+ "\x8B" => '‹',
+ "\x8C" => '�',
+ "\x8D" => '�',
+ "\x8E" => '�',
+ "\x8F" => '�',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '˜',
+ "\x99" => '™',
+ "\x9A" => '�',
+ "\x9B" => '›',
+ "\x9C" => '�',
+ "\x9D" => '�',
+ "\x9E" => '�',
+ "\x9F" => '�',
+ "\xA0" => ' ',
+ "\xA1" => '¡',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '₪',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => '×',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => '÷',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '¿',
+ "\xC0" => 'ְ',
+ "\xC1" => 'ֱ',
+ "\xC2" => 'ֲ',
+ "\xC3" => 'ֳ',
+ "\xC4" => 'ִ',
+ "\xC5" => 'ֵ',
+ "\xC6" => 'ֶ',
+ "\xC7" => 'ַ',
+ "\xC8" => 'ָ',
+ "\xC9" => 'ֹ',
+ "\xCA" => '�',
+ "\xCB" => 'ֻ',
+ "\xCC" => 'ּ',
+ "\xCD" => 'ֽ',
+ "\xCE" => '־',
+ "\xCF" => 'ֿ',
+ "\xD0" => '׀',
+ "\xD1" => 'ׁ',
+ "\xD2" => 'ׂ',
+ "\xD3" => '׃',
+ "\xD4" => 'װ',
+ "\xD5" => 'ױ',
+ "\xD6" => 'ײ',
+ "\xD7" => '׳',
+ "\xD8" => '״',
+ "\xD9" => '�',
+ "\xDA" => '�',
+ "\xDB" => '�',
+ "\xDC" => '�',
+ "\xDD" => '�',
+ "\xDE" => '�',
+ "\xDF" => '�',
+ "\xE0" => 'א',
+ "\xE1" => 'ב',
+ "\xE2" => 'ג',
+ "\xE3" => 'ד',
+ "\xE4" => 'ה',
+ "\xE5" => 'ו',
+ "\xE6" => 'ז',
+ "\xE7" => 'ח',
+ "\xE8" => 'ט',
+ "\xE9" => 'י',
+ "\xEA" => 'ך',
+ "\xEB" => 'כ',
+ "\xEC" => 'ל',
+ "\xED" => 'ם',
+ "\xEE" => 'מ',
+ "\xEF" => 'ן',
+ "\xF0" => 'נ',
+ "\xF1" => 'ס',
+ "\xF2" => 'ע',
+ "\xF3" => 'ף',
+ "\xF4" => 'פ',
+ "\xF5" => 'ץ',
+ "\xF6" => 'צ',
+ "\xF7" => 'ק',
+ "\xF8" => 'ר',
+ "\xF9" => 'ש',
+ "\xFA" => 'ת',
+ "\xFB" => '�',
+ "\xFC" => '�',
+ "\xFD" => '‎',
+ "\xFE" => '‏',
+ "\xFF" => '�'
);
$string = str_replace(array_keys($cp1255), array_values($cp1255), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1256 decoding function that is needed to read
* cp1256 encoded mails in non-cp1256 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1256.TXT
*
return $string;
$cp1256 = array(
- "\x80" => '€',
- "\x81" => 'پ',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => 'ˆ',
- "\x89" => '‰',
- "\x8A" => 'ٹ',
- "\x8B" => '‹',
- "\x8C" => 'Œ',
- "\x8D" => 'چ',
- "\x8E" => 'ژ',
- "\x8F" => 'ڈ',
- "\x90" => 'گ',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => 'ک',
- "\x99" => '™',
- "\x9A" => 'ڑ',
- "\x9B" => '›',
- "\x9C" => 'œ',
- "\x9D" => '‌',
- "\x9E" => '‍',
- "\x9F" => 'ں',
- "\xA0" => ' ',
- "\xA1" => '،',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'ھ',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => '؛',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '؟',
- "\xC0" => 'ہ',
- "\xC1" => 'ء',
- "\xC2" => 'آ',
- "\xC3" => 'أ',
- "\xC4" => 'ؤ',
- "\xC5" => 'إ',
- "\xC6" => 'ئ',
- "\xC7" => 'ا',
- "\xC8" => 'ب',
- "\xC9" => 'ة',
- "\xCA" => 'ت',
- "\xCB" => 'ث',
- "\xCC" => 'ج',
- "\xCD" => 'ح',
- "\xCE" => 'خ',
- "\xCF" => 'د',
- "\xD0" => 'ذ',
- "\xD1" => 'ر',
- "\xD2" => 'ز',
- "\xD3" => 'س',
- "\xD4" => 'ش',
- "\xD5" => 'ص',
- "\xD6" => 'ض',
- "\xD7" => '×',
- "\xD8" => 'ط',
- "\xD9" => 'ظ',
- "\xDA" => 'ع',
- "\xDB" => 'غ',
- "\xDC" => 'ـ',
- "\xDD" => 'ف',
- "\xDE" => 'ق',
- "\xDF" => 'ك',
- "\xE0" => 'à',
- "\xE1" => 'ل',
- "\xE2" => 'â',
- "\xE3" => 'م',
- "\xE4" => 'ن',
- "\xE5" => 'ه',
- "\xE6" => 'و',
- "\xE7" => 'ç',
- "\xE8" => 'è',
- "\xE9" => 'é',
- "\xEA" => 'ê',
- "\xEB" => 'ë',
- "\xEC" => 'ى',
- "\xED" => 'ي',
- "\xEE" => 'î',
- "\xEF" => 'ï',
- "\xF0" => 'ً',
- "\xF1" => 'ٌ',
- "\xF2" => 'ٍ',
- "\xF3" => 'َ',
- "\xF4" => 'ô',
- "\xF5" => 'ُ',
- "\xF6" => 'ِ',
- "\xF7" => '÷',
- "\xF8" => 'ّ',
- "\xF9" => 'ù',
- "\xFA" => 'ْ',
- "\xFB" => 'û',
- "\xFC" => 'ü',
- "\xFD" => '‎',
- "\xFE" => '‏',
- "\xFF" => 'ے'
+ "\x80" => '€',
+ "\x81" => 'پ',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => 'ˆ',
+ "\x89" => '‰',
+ "\x8A" => 'ٹ',
+ "\x8B" => '‹',
+ "\x8C" => 'Œ',
+ "\x8D" => 'چ',
+ "\x8E" => 'ژ',
+ "\x8F" => 'ڈ',
+ "\x90" => 'گ',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => 'ک',
+ "\x99" => '™',
+ "\x9A" => 'ڑ',
+ "\x9B" => '›',
+ "\x9C" => 'œ',
+ "\x9D" => '‌',
+ "\x9E" => '‍',
+ "\x9F" => 'ں',
+ "\xA0" => ' ',
+ "\xA1" => '،',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'ھ',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => '؛',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '؟',
+ "\xC0" => 'ہ',
+ "\xC1" => 'ء',
+ "\xC2" => 'آ',
+ "\xC3" => 'أ',
+ "\xC4" => 'ؤ',
+ "\xC5" => 'إ',
+ "\xC6" => 'ئ',
+ "\xC7" => 'ا',
+ "\xC8" => 'ب',
+ "\xC9" => 'ة',
+ "\xCA" => 'ت',
+ "\xCB" => 'ث',
+ "\xCC" => 'ج',
+ "\xCD" => 'ح',
+ "\xCE" => 'خ',
+ "\xCF" => 'د',
+ "\xD0" => 'ذ',
+ "\xD1" => 'ر',
+ "\xD2" => 'ز',
+ "\xD3" => 'س',
+ "\xD4" => 'ش',
+ "\xD5" => 'ص',
+ "\xD6" => 'ض',
+ "\xD7" => '×',
+ "\xD8" => 'ط',
+ "\xD9" => 'ظ',
+ "\xDA" => 'ع',
+ "\xDB" => 'غ',
+ "\xDC" => 'ـ',
+ "\xDD" => 'ف',
+ "\xDE" => 'ق',
+ "\xDF" => 'ك',
+ "\xE0" => 'à',
+ "\xE1" => 'ل',
+ "\xE2" => 'â',
+ "\xE3" => 'م',
+ "\xE4" => 'ن',
+ "\xE5" => 'ه',
+ "\xE6" => 'و',
+ "\xE7" => 'ç',
+ "\xE8" => 'è',
+ "\xE9" => 'é',
+ "\xEA" => 'ê',
+ "\xEB" => 'ë',
+ "\xEC" => 'ى',
+ "\xED" => 'ي',
+ "\xEE" => 'î',
+ "\xEF" => 'ï',
+ "\xF0" => 'ً',
+ "\xF1" => 'ٌ',
+ "\xF2" => 'ٍ',
+ "\xF3" => 'َ',
+ "\xF4" => 'ô',
+ "\xF5" => 'ُ',
+ "\xF6" => 'ِ',
+ "\xF7" => '÷',
+ "\xF8" => 'ّ',
+ "\xF9" => 'ù',
+ "\xFA" => 'ْ',
+ "\xFB" => 'û',
+ "\xFC" => 'ü',
+ "\xFD" => '‎',
+ "\xFE" => '‏',
+ "\xFF" => 'ے'
);
$string = str_replace(array_keys($cp1256), array_values($cp1256), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1257 decoding function that is needed to read
* cp1257 encoded mails in non-cp1257 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT
*
return $string;
$cp1257 = array(
- "\x80" => '€',
- "\x82" => '‚',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x89" => '‰',
- "\x8B" => '‹',
- "\x8D" => '¨',
- "\x8E" => 'ˇ',
- "\x8F" => '¸',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x99" => '™',
- "\x9B" => '›',
- "\x9D" => '¯',
- "\x9E" => '˛',
- "\xA0" => ' ',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => 'Ø',
- "\xA9" => '©',
- "\xAA" => 'Ŗ',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => 'Æ',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => 'ø',
- "\xB9" => '¹',
- "\xBA" => 'ŗ',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => 'æ',
- "\xC0" => 'Ą',
- "\xC1" => 'Į',
- "\xC2" => 'Ā',
- "\xC3" => 'Ć',
- "\xC4" => 'Ä',
- "\xC5" => 'Å',
- "\xC6" => 'Ę',
- "\xC7" => 'Ē',
- "\xC8" => 'Č',
- "\xC9" => 'É',
- "\xCA" => 'Ź',
- "\xCB" => 'Ė',
- "\xCC" => 'Ģ',
- "\xCD" => 'Ķ',
- "\xCE" => 'Ī',
- "\xCF" => 'Ļ',
- "\xD0" => 'Š',
- "\xD1" => 'Ń',
- "\xD2" => 'Ņ',
- "\xD3" => 'Ó',
- "\xD4" => 'Ō',
- "\xD5" => 'Õ',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ų',
- "\xD9" => 'Ł',
- "\xDA" => 'Ś',
- "\xDB" => 'Ū',
- "\xDC" => 'Ü',
- "\xDD" => 'Ż',
- "\xDE" => 'Ž',
- "\xDF" => 'ß',
- "\xE0" => 'ą',
- "\xE1" => 'į',
- "\xE2" => 'ā',
- "\xE3" => 'ć',
- "\xE4" => 'ä',
- "\xE5" => 'å',
- "\xE6" => 'ę',
- "\xE7" => 'ē',
- "\xE8" => 'č',
- "\xE9" => 'é',
- "\xEA" => 'ź',
- "\xEB" => 'ė',
- "\xEC" => 'ģ',
- "\xED" => 'ķ',
- "\xEE" => 'ī',
- "\xEF" => 'ļ',
- "\xF0" => 'š',
- "\xF1" => 'ń',
- "\xF2" => 'ņ',
- "\xF3" => 'ó',
- "\xF4" => 'ō',
- "\xF5" => 'õ',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ų',
- "\xF9" => 'ł',
- "\xFA" => 'ś',
- "\xFB" => 'ū',
- "\xFC" => 'ü',
- "\xFD" => 'ż',
- "\xFE" => 'ž',
- "\xFF" => '˙'
+ "\x80" => '€',
+ "\x82" => '‚',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x89" => '‰',
+ "\x8B" => '‹',
+ "\x8D" => '¨',
+ "\x8E" => 'ˇ',
+ "\x8F" => '¸',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x99" => '™',
+ "\x9B" => '›',
+ "\x9D" => '¯',
+ "\x9E" => '˛',
+ "\xA0" => ' ',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => 'Ø',
+ "\xA9" => '©',
+ "\xAA" => 'Ŗ',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => 'Æ',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => 'ø',
+ "\xB9" => '¹',
+ "\xBA" => 'ŗ',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => 'æ',
+ "\xC0" => 'Ą',
+ "\xC1" => 'Į',
+ "\xC2" => 'Ā',
+ "\xC3" => 'Ć',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Å',
+ "\xC6" => 'Ę',
+ "\xC7" => 'Ē',
+ "\xC8" => 'Č',
+ "\xC9" => 'É',
+ "\xCA" => 'Ź',
+ "\xCB" => 'Ė',
+ "\xCC" => 'Ģ',
+ "\xCD" => 'Ķ',
+ "\xCE" => 'Ī',
+ "\xCF" => 'Ļ',
+ "\xD0" => 'Š',
+ "\xD1" => 'Ń',
+ "\xD2" => 'Ņ',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ō',
+ "\xD5" => 'Õ',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ų',
+ "\xD9" => 'Ł',
+ "\xDA" => 'Ś',
+ "\xDB" => 'Ū',
+ "\xDC" => 'Ü',
+ "\xDD" => 'Ż',
+ "\xDE" => 'Ž',
+ "\xDF" => 'ß',
+ "\xE0" => 'ą',
+ "\xE1" => 'į',
+ "\xE2" => 'ā',
+ "\xE3" => 'ć',
+ "\xE4" => 'ä',
+ "\xE5" => 'å',
+ "\xE6" => 'ę',
+ "\xE7" => 'ē',
+ "\xE8" => 'č',
+ "\xE9" => 'é',
+ "\xEA" => 'ź',
+ "\xEB" => 'ė',
+ "\xEC" => 'ģ',
+ "\xED" => 'ķ',
+ "\xEE" => 'ī',
+ "\xEF" => 'ļ',
+ "\xF0" => 'š',
+ "\xF1" => 'ń',
+ "\xF2" => 'ņ',
+ "\xF3" => 'ó',
+ "\xF4" => 'ō',
+ "\xF5" => 'õ',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ų',
+ "\xF9" => 'ł',
+ "\xFA" => 'ś',
+ "\xFB" => 'ū',
+ "\xFC" => 'ü',
+ "\xFD" => 'ż',
+ "\xFE" => 'ž',
+ "\xFF" => '˙'
);
$string = str_replace(array_keys($cp1257), array_values($cp1257), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp1258 decoding function that is needed to read
* cp1258 encoded mails in non-cp1258 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1258.TXT
*
return $string;
$cp1258 = array(
- "\x80" => '€',
- "\x81" => '�',
- "\x82" => '‚',
- "\x83" => 'ƒ',
- "\x84" => '„',
- "\x85" => '…',
- "\x86" => '†',
- "\x87" => '‡',
- "\x88" => 'ˆ',
- "\x89" => '‰',
- "\x8A" => '�',
- "\x8B" => '‹',
- "\x8C" => 'Œ',
- "\x8D" => '�',
- "\x8E" => '�',
- "\x8F" => '�',
- "\x90" => '�',
- "\x91" => '‘',
- "\x92" => '’',
- "\x93" => '“',
- "\x94" => '”',
- "\x95" => '•',
- "\x96" => '–',
- "\x97" => '—',
- "\x98" => '˜',
- "\x99" => '™',
- "\x9A" => '�',
- "\x9B" => '›',
- "\x9C" => 'œ',
- "\x9D" => '�',
- "\x9E" => '�',
- "\x9F" => 'Ÿ',
- "\xA0" => ' ',
- "\xA1" => '¡',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'ª',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => 'º',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '¿',
- "\xC0" => 'À',
- "\xC1" => 'Á',
- "\xC2" => 'Â',
- "\xC3" => 'Ă',
- "\xC4" => 'Ä',
- "\xC5" => 'Å',
- "\xC6" => 'Æ',
- "\xC7" => 'Ç',
- "\xC8" => 'È',
- "\xC9" => 'É',
- "\xCA" => 'Ê',
- "\xCB" => 'Ë',
- "\xCC" => '̀',
- "\xCD" => 'Í',
- "\xCE" => 'Î',
- "\xCF" => 'Ï',
- "\xD0" => 'Đ',
- "\xD1" => 'Ñ',
- "\xD2" => '̉',
- "\xD3" => 'Ó',
- "\xD4" => 'Ô',
- "\xD5" => 'Ơ',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ø',
- "\xD9" => 'Ù',
- "\xDA" => 'Ú',
- "\xDB" => 'Û',
- "\xDC" => 'Ü',
- "\xDD" => 'Ư',
- "\xDE" => '̃',
- "\xDF" => 'ß',
- "\xE0" => 'à',
- "\xE1" => 'á',
- "\xE2" => 'â',
- "\xE3" => 'ă',
- "\xE4" => 'ä',
- "\xE5" => 'å',
- "\xE6" => 'æ',
- "\xE7" => 'ç',
- "\xE8" => 'è',
- "\xE9" => 'é',
- "\xEA" => 'ê',
- "\xEB" => 'ë',
- "\xEC" => '́',
- "\xED" => 'í',
- "\xEE" => 'î',
- "\xEF" => 'ï',
- "\xF0" => 'đ',
- "\xF1" => 'ñ',
- "\xF2" => '̣',
- "\xF3" => 'ó',
- "\xF4" => 'ô',
- "\xF5" => 'ơ',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ø',
- "\xF9" => 'ù',
- "\xFA" => 'ú',
- "\xFB" => 'û',
- "\xFC" => 'ü',
- "\xFD" => 'ư',
- "\xFE" => '₫',
- "\xFF" => 'ÿ'
+ "\x80" => '€',
+ "\x81" => '�',
+ "\x82" => '‚',
+ "\x83" => 'ƒ',
+ "\x84" => '„',
+ "\x85" => '…',
+ "\x86" => '†',
+ "\x87" => '‡',
+ "\x88" => 'ˆ',
+ "\x89" => '‰',
+ "\x8A" => '�',
+ "\x8B" => '‹',
+ "\x8C" => 'Œ',
+ "\x8D" => '�',
+ "\x8E" => '�',
+ "\x8F" => '�',
+ "\x90" => '�',
+ "\x91" => '‘',
+ "\x92" => '’',
+ "\x93" => '“',
+ "\x94" => '”',
+ "\x95" => '•',
+ "\x96" => '–',
+ "\x97" => '—',
+ "\x98" => '˜',
+ "\x99" => '™',
+ "\x9A" => '�',
+ "\x9B" => '›',
+ "\x9C" => 'œ',
+ "\x9D" => '�',
+ "\x9E" => '�',
+ "\x9F" => 'Ÿ',
+ "\xA0" => ' ',
+ "\xA1" => '¡',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'ª',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => 'º',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '¿',
+ "\xC0" => 'À',
+ "\xC1" => 'Á',
+ "\xC2" => 'Â',
+ "\xC3" => 'Ă',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Å',
+ "\xC6" => 'Æ',
+ "\xC7" => 'Ç',
+ "\xC8" => 'È',
+ "\xC9" => 'É',
+ "\xCA" => 'Ê',
+ "\xCB" => 'Ë',
+ "\xCC" => '̀',
+ "\xCD" => 'Í',
+ "\xCE" => 'Î',
+ "\xCF" => 'Ï',
+ "\xD0" => 'Đ',
+ "\xD1" => 'Ñ',
+ "\xD2" => '̉',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ô',
+ "\xD5" => 'Ơ',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ø',
+ "\xD9" => 'Ù',
+ "\xDA" => 'Ú',
+ "\xDB" => 'Û',
+ "\xDC" => 'Ü',
+ "\xDD" => 'Ư',
+ "\xDE" => '̃',
+ "\xDF" => 'ß',
+ "\xE0" => 'à',
+ "\xE1" => 'á',
+ "\xE2" => 'â',
+ "\xE3" => 'ă',
+ "\xE4" => 'ä',
+ "\xE5" => 'å',
+ "\xE6" => 'æ',
+ "\xE7" => 'ç',
+ "\xE8" => 'è',
+ "\xE9" => 'é',
+ "\xEA" => 'ê',
+ "\xEB" => 'ë',
+ "\xEC" => '́',
+ "\xED" => 'í',
+ "\xEE" => 'î',
+ "\xEF" => 'ï',
+ "\xF0" => 'đ',
+ "\xF1" => 'ñ',
+ "\xF2" => '̣',
+ "\xF3" => 'ó',
+ "\xF4" => 'ô',
+ "\xF5" => 'ơ',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ø',
+ "\xF9" => 'ù',
+ "\xFA" => 'ú',
+ "\xFB" => 'û',
+ "\xFC" => 'ü',
+ "\xFD" => 'ư',
+ "\xFE" => '₫',
+ "\xFF" => 'ÿ'
);
$string = str_replace(array_keys($cp1258), array_values($cp1258), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp855 decoding function that is needed to read
* cp855 encoded mails in non-cp855 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP855.TXT
* Name: cp855_DOSCyrillic to Unicode table
* Date: 04/24/96
* Authors: Lori Brownell <loribr@microsoft.com>
* K.D. Chang <a-kchang@microsoft.com>
- *
+ *
* @version $Id$
* @package squirrelmail
* @subpackage decode
return $string;
$cp855 = array(
- "\x80" => 'ђ',
- "\x81" => 'Ђ',
- "\x82" => 'ѓ',
- "\x83" => 'Ѓ',
- "\x84" => 'ё',
- "\x85" => 'Ё',
- "\x86" => 'є',
- "\x87" => 'Є',
- "\x88" => 'ѕ',
- "\x89" => 'Ѕ',
- "\x8a" => 'і',
- "\x8b" => 'І',
- "\x8c" => 'ї',
- "\x8d" => 'Ї',
- "\x8e" => 'ј',
- "\x8f" => 'Ј',
- "\x90" => 'љ',
- "\x91" => 'Љ',
- "\x92" => 'њ',
- "\x93" => 'Њ',
- "\x94" => 'ћ',
- "\x95" => 'Ћ',
- "\x96" => 'ќ',
- "\x97" => 'Ќ',
- "\x98" => 'ў',
- "\x99" => 'Ў',
- "\x9a" => 'џ',
- "\x9b" => 'Џ',
- "\x9c" => 'ю',
- "\x9d" => 'Ю',
- "\x9e" => 'ъ',
- "\x9f" => 'Ъ',
- "\xa0" => 'а',
- "\xa1" => 'А',
- "\xa2" => 'б',
- "\xa3" => 'Б',
- "\xa4" => 'ц',
- "\xa5" => 'Ц',
- "\xa6" => 'д',
- "\xa7" => 'Д',
- "\xa8" => 'е',
- "\xa9" => 'Е',
- "\xaa" => 'ф',
- "\xab" => 'Ф',
- "\xac" => 'г',
- "\xad" => 'Г',
- "\xae" => '«',
- "\xaf" => '»',
- "\xb0" => '░',
- "\xb1" => '▒',
- "\xb2" => '▓',
- "\xb3" => '│',
- "\xb4" => '┤',
- "\xb5" => 'х',
- "\xb6" => 'Х',
- "\xb7" => 'и',
- "\xb8" => 'И',
- "\xb9" => '╣',
- "\xba" => '║',
- "\xbb" => '╗',
- "\xbc" => '╝',
- "\xbd" => 'й',
- "\xbe" => 'Й',
- "\xbf" => '┐',
- "\xc0" => '└',
- "\xc1" => '┴',
- "\xc2" => '┬',
- "\xc3" => '├',
- "\xc4" => '─',
- "\xc5" => '┼',
- "\xc6" => 'к',
- "\xc7" => 'К',
- "\xc8" => '╚',
- "\xc9" => '╔',
- "\xca" => '╩',
- "\xcb" => '╦',
- "\xcc" => '╠',
- "\xcd" => '═',
- "\xce" => '╬',
- "\xcf" => '¤',
- "\xd0" => 'л',
- "\xd1" => 'Л',
- "\xd2" => 'м',
- "\xd3" => 'М',
- "\xd4" => 'н',
- "\xd5" => 'Н',
- "\xd6" => 'о',
- "\xd7" => 'О',
- "\xd8" => 'п',
- "\xd9" => '┘',
- "\xda" => '┌',
- "\xdb" => '█',
- "\xdc" => '▄',
- "\xdd" => 'П',
- "\xde" => 'я',
- "\xdf" => '▀',
- "\xe0" => 'Я',
- "\xe1" => 'р',
- "\xe2" => 'Р',
- "\xe3" => 'с',
- "\xe4" => 'С',
- "\xe5" => 'т',
- "\xe6" => 'Т',
- "\xe7" => 'у',
- "\xe8" => 'У',
- "\xe9" => 'ж',
- "\xea" => 'Ж',
- "\xeb" => 'в',
- "\xec" => 'В',
- "\xed" => 'ь',
- "\xee" => 'Ь',
- "\xef" => '№',
- "\xf0" => '­',
- "\xf1" => 'ы',
- "\xf2" => 'Ы',
- "\xf3" => 'з',
- "\xf4" => 'З',
- "\xf5" => 'ш',
- "\xf6" => 'Ш',
- "\xf7" => 'э',
- "\xf8" => 'Э',
- "\xf9" => 'щ',
- "\xfa" => 'Щ',
- "\xfb" => 'ч',
- "\xfc" => 'Ч',
- "\xfd" => '§',
- "\xfe" => '■',
- "\xff" => ' '
+ "\x80" => 'ђ',
+ "\x81" => 'Ђ',
+ "\x82" => 'ѓ',
+ "\x83" => 'Ѓ',
+ "\x84" => 'ё',
+ "\x85" => 'Ё',
+ "\x86" => 'є',
+ "\x87" => 'Є',
+ "\x88" => 'ѕ',
+ "\x89" => 'Ѕ',
+ "\x8a" => 'і',
+ "\x8b" => 'І',
+ "\x8c" => 'ї',
+ "\x8d" => 'Ї',
+ "\x8e" => 'ј',
+ "\x8f" => 'Ј',
+ "\x90" => 'љ',
+ "\x91" => 'Љ',
+ "\x92" => 'њ',
+ "\x93" => 'Њ',
+ "\x94" => 'ћ',
+ "\x95" => 'Ћ',
+ "\x96" => 'ќ',
+ "\x97" => 'Ќ',
+ "\x98" => 'ў',
+ "\x99" => 'Ў',
+ "\x9a" => 'џ',
+ "\x9b" => 'Џ',
+ "\x9c" => 'ю',
+ "\x9d" => 'Ю',
+ "\x9e" => 'ъ',
+ "\x9f" => 'Ъ',
+ "\xa0" => 'а',
+ "\xa1" => 'А',
+ "\xa2" => 'б',
+ "\xa3" => 'Б',
+ "\xa4" => 'ц',
+ "\xa5" => 'Ц',
+ "\xa6" => 'д',
+ "\xa7" => 'Д',
+ "\xa8" => 'е',
+ "\xa9" => 'Е',
+ "\xaa" => 'ф',
+ "\xab" => 'Ф',
+ "\xac" => 'г',
+ "\xad" => 'Г',
+ "\xae" => '«',
+ "\xaf" => '»',
+ "\xb0" => '░',
+ "\xb1" => '▒',
+ "\xb2" => '▓',
+ "\xb3" => '│',
+ "\xb4" => '┤',
+ "\xb5" => 'х',
+ "\xb6" => 'Х',
+ "\xb7" => 'и',
+ "\xb8" => 'И',
+ "\xb9" => '╣',
+ "\xba" => '║',
+ "\xbb" => '╗',
+ "\xbc" => '╝',
+ "\xbd" => 'й',
+ "\xbe" => 'Й',
+ "\xbf" => '┐',
+ "\xc0" => '└',
+ "\xc1" => '┴',
+ "\xc2" => '┬',
+ "\xc3" => '├',
+ "\xc4" => '─',
+ "\xc5" => '┼',
+ "\xc6" => 'к',
+ "\xc7" => 'К',
+ "\xc8" => '╚',
+ "\xc9" => '╔',
+ "\xca" => '╩',
+ "\xcb" => '╦',
+ "\xcc" => '╠',
+ "\xcd" => '═',
+ "\xce" => '╬',
+ "\xcf" => '¤',
+ "\xd0" => 'л',
+ "\xd1" => 'Л',
+ "\xd2" => 'м',
+ "\xd3" => 'М',
+ "\xd4" => 'н',
+ "\xd5" => 'Н',
+ "\xd6" => 'о',
+ "\xd7" => 'О',
+ "\xd8" => 'п',
+ "\xd9" => '┘',
+ "\xda" => '┌',
+ "\xdb" => '█',
+ "\xdc" => '▄',
+ "\xdd" => 'П',
+ "\xde" => 'я',
+ "\xdf" => '▀',
+ "\xe0" => 'Я',
+ "\xe1" => 'р',
+ "\xe2" => 'Р',
+ "\xe3" => 'с',
+ "\xe4" => 'С',
+ "\xe5" => 'т',
+ "\xe6" => 'Т',
+ "\xe7" => 'у',
+ "\xe8" => 'У',
+ "\xe9" => 'ж',
+ "\xea" => 'Ж',
+ "\xeb" => 'в',
+ "\xec" => 'В',
+ "\xed" => 'ь',
+ "\xee" => 'Ь',
+ "\xef" => '№',
+ "\xf0" => '­',
+ "\xf1" => 'ы',
+ "\xf2" => 'Ы',
+ "\xf3" => 'з',
+ "\xf4" => 'З',
+ "\xf5" => 'ш',
+ "\xf6" => 'Ш',
+ "\xf7" => 'э',
+ "\xf8" => 'Э',
+ "\xf9" => 'щ',
+ "\xfa" => 'Щ',
+ "\xfb" => 'ч',
+ "\xfc" => 'Ч',
+ "\xfd" => '§',
+ "\xfe" => '■',
+ "\xff" => ' '
);
$string = str_replace(array_keys($cp855), array_values($cp855), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains cp866 decoding function that is needed to read
* cp866 encoded mails in non-cp866 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/
Authors: Lori Brownell <loribr@microsoft.com>
K.D. Chang <a-kchang@microsoft.com>
The entries are in cp866_DOSCyrillicRussian order
- *
+ *
* @version $Id$
* @package squirrelmail
* @subpackage decode
return $string;
$cp866 = array(
- "\x80" => 'А',
- "\x81" => 'Б',
- "\x82" => 'В',
- "\x83" => 'Г',
- "\x84" => 'Д',
- "\x85" => 'Е',
- "\x86" => 'Ж',
- "\x87" => 'З',
- "\x88" => 'И',
- "\x89" => 'Й',
- "\x8a" => 'К',
- "\x8b" => 'Л',
- "\x8c" => 'М',
- "\x8d" => 'Н',
- "\x8e" => 'О',
- "\x8f" => 'П',
- "\x90" => 'Р',
- "\x91" => 'С',
- "\x92" => 'Т',
- "\x93" => 'У',
- "\x94" => 'Ф',
- "\x95" => 'Х',
- "\x96" => 'Ц',
- "\x97" => 'Ч',
- "\x98" => 'Ш',
- "\x99" => 'Щ',
- "\x9a" => 'Ъ',
- "\x9b" => 'Ы',
- "\x9c" => 'Ь',
- "\x9d" => 'Э',
- "\x9e" => 'Ю',
- "\x9f" => 'Я',
- "\xa0" => 'а',
- "\xa1" => 'б',
- "\xa2" => 'в',
- "\xa3" => 'г',
- "\xa4" => 'д',
- "\xa5" => 'е',
- "\xa6" => 'ж',
- "\xa7" => 'з',
- "\xa8" => 'и',
- "\xa9" => 'й',
- "\xaa" => 'к',
- "\xab" => 'л',
- "\xac" => 'м',
- "\xad" => 'н',
- "\xae" => 'о',
- "\xaf" => 'п',
- "\xb0" => '░',
- "\xb1" => '▒',
- "\xb2" => '▓',
- "\xb3" => '│',
- "\xb4" => '┤',
- "\xb5" => '╡',
- "\xb6" => '╢',
- "\xb7" => '╖',
- "\xb8" => '╕',
- "\xb9" => '╣',
- "\xba" => '║',
- "\xbb" => '╗',
- "\xbc" => '╝',
- "\xbd" => '╜',
- "\xbe" => '╛',
- "\xbf" => '┐',
- "\xc0" => '└',
- "\xc1" => '┴',
- "\xc2" => '┬',
- "\xc3" => '├',
- "\xc4" => '─',
- "\xc5" => '┼',
- "\xc6" => '╞',
- "\xc7" => '╟',
- "\xc8" => '╚',
- "\xc9" => '╔',
- "\xca" => '╩',
- "\xcb" => '╦',
- "\xcc" => '╠',
- "\xcd" => '═',
- "\xce" => '╬',
- "\xcf" => '╧',
- "\xd0" => '╨',
- "\xd1" => '╤',
- "\xd2" => '╥',
- "\xd3" => '╙',
- "\xd4" => '╘',
- "\xd5" => '╒',
- "\xd6" => '╓',
- "\xd7" => '╫',
- "\xd8" => '╪',
- "\xd9" => '┘',
- "\xda" => '┌',
- "\xdb" => '█',
- "\xdc" => '▄',
- "\xdd" => '▌',
- "\xde" => '▐',
- "\xdf" => '▀',
- "\xe0" => 'р',
- "\xe1" => 'с',
- "\xe2" => 'т',
- "\xe3" => 'у',
- "\xe4" => 'ф',
- "\xe5" => 'х',
- "\xe6" => 'ц',
- "\xe7" => 'ч',
- "\xe8" => 'ш',
- "\xe9" => 'щ',
- "\xea" => 'ъ',
- "\xeb" => 'ы',
- "\xec" => 'ь',
- "\xed" => 'э',
- "\xee" => 'ю',
- "\xef" => 'я',
- "\xf0" => 'Ё',
- "\xf1" => 'ё',
- "\xf2" => 'Є',
- "\xf3" => 'є',
- "\xf4" => 'Ї',
- "\xf5" => 'ї',
- "\xf6" => 'Ў',
- "\xf7" => 'ў',
- "\xf8" => '°',
- "\xf9" => '∙',
- "\xfa" => '·',
- "\xfb" => '√',
- "\xfc" => '№',
- "\xfd" => '¤',
- "\xfe" => '■',
- "\xff" => ' '
+ "\x80" => 'А',
+ "\x81" => 'Б',
+ "\x82" => 'В',
+ "\x83" => 'Г',
+ "\x84" => 'Д',
+ "\x85" => 'Е',
+ "\x86" => 'Ж',
+ "\x87" => 'З',
+ "\x88" => 'И',
+ "\x89" => 'Й',
+ "\x8a" => 'К',
+ "\x8b" => 'Л',
+ "\x8c" => 'М',
+ "\x8d" => 'Н',
+ "\x8e" => 'О',
+ "\x8f" => 'П',
+ "\x90" => 'Р',
+ "\x91" => 'С',
+ "\x92" => 'Т',
+ "\x93" => 'У',
+ "\x94" => 'Ф',
+ "\x95" => 'Х',
+ "\x96" => 'Ц',
+ "\x97" => 'Ч',
+ "\x98" => 'Ш',
+ "\x99" => 'Щ',
+ "\x9a" => 'Ъ',
+ "\x9b" => 'Ы',
+ "\x9c" => 'Ь',
+ "\x9d" => 'Э',
+ "\x9e" => 'Ю',
+ "\x9f" => 'Я',
+ "\xa0" => 'а',
+ "\xa1" => 'б',
+ "\xa2" => 'в',
+ "\xa3" => 'г',
+ "\xa4" => 'д',
+ "\xa5" => 'е',
+ "\xa6" => 'ж',
+ "\xa7" => 'з',
+ "\xa8" => 'и',
+ "\xa9" => 'й',
+ "\xaa" => 'к',
+ "\xab" => 'л',
+ "\xac" => 'м',
+ "\xad" => 'н',
+ "\xae" => 'о',
+ "\xaf" => 'п',
+ "\xb0" => '░',
+ "\xb1" => '▒',
+ "\xb2" => '▓',
+ "\xb3" => '│',
+ "\xb4" => '┤',
+ "\xb5" => '╡',
+ "\xb6" => '╢',
+ "\xb7" => '╖',
+ "\xb8" => '╕',
+ "\xb9" => '╣',
+ "\xba" => '║',
+ "\xbb" => '╗',
+ "\xbc" => '╝',
+ "\xbd" => '╜',
+ "\xbe" => '╛',
+ "\xbf" => '┐',
+ "\xc0" => '└',
+ "\xc1" => '┴',
+ "\xc2" => '┬',
+ "\xc3" => '├',
+ "\xc4" => '─',
+ "\xc5" => '┼',
+ "\xc6" => '╞',
+ "\xc7" => '╟',
+ "\xc8" => '╚',
+ "\xc9" => '╔',
+ "\xca" => '╩',
+ "\xcb" => '╦',
+ "\xcc" => '╠',
+ "\xcd" => '═',
+ "\xce" => '╬',
+ "\xcf" => '╧',
+ "\xd0" => '╨',
+ "\xd1" => '╤',
+ "\xd2" => '╥',
+ "\xd3" => '╙',
+ "\xd4" => '╘',
+ "\xd5" => '╒',
+ "\xd6" => '╓',
+ "\xd7" => '╫',
+ "\xd8" => '╪',
+ "\xd9" => '┘',
+ "\xda" => '┌',
+ "\xdb" => '█',
+ "\xdc" => '▄',
+ "\xdd" => '▌',
+ "\xde" => '▐',
+ "\xdf" => '▀',
+ "\xe0" => 'р',
+ "\xe1" => 'с',
+ "\xe2" => 'т',
+ "\xe3" => 'у',
+ "\xe4" => 'ф',
+ "\xe5" => 'х',
+ "\xe6" => 'ц',
+ "\xe7" => 'ч',
+ "\xe8" => 'ш',
+ "\xe9" => 'щ',
+ "\xea" => 'ъ',
+ "\xeb" => 'ы',
+ "\xec" => 'ь',
+ "\xed" => 'э',
+ "\xee" => 'ю',
+ "\xef" => 'я',
+ "\xf0" => 'Ё',
+ "\xf1" => 'ё',
+ "\xf2" => 'Є',
+ "\xf3" => 'є',
+ "\xf4" => 'Ї',
+ "\xf5" => 'ї',
+ "\xf6" => 'Ў',
+ "\xf7" => 'ў',
+ "\xf8" => '°',
+ "\xf9" => '∙',
+ "\xfa" => '·',
+ "\xfb" => '√',
+ "\xfc" => '№',
+ "\xfd" => '¤',
+ "\xfe" => '■',
+ "\xff" => ' '
);
$string = str_replace(array_keys($cp866), array_values($cp866), $string);
return $string;
-}
+}
\ No newline at end of file
*
* This file contains iso-8859-10 decoding function that is needed to read
* iso-8859-10 encoded mails in non-iso-8859-10 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-10.TXT
*
*
* This file contains iso-8859-11 decoding function that is needed to read
* iso-8859-11 encoded mails in non-iso-8859-11 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-11.TXT
*
- * Name: ISO/IEC 8859-11:2001 to Unicode
- * Unicode version: 3.2
- * Table version: 1.0
- * Table format: Format A
- * Date: 2002 October 7
- * Authors: Ken Whistler <kenw@sybase.com>
+ * Name: ISO/IEC 8859-11:2001 to Unicode
+ * Unicode version: 3.2
+ * Table version: 1.0
+ * Table format: Format A
+ * Date: 2002 October 7
+ * Authors: Ken Whistler <kenw@sybase.com>
*
* Original copyright:
- * Copyright (c) 1999 Unicode, Inc. All Rights reserved.
+ * Copyright (c) 1999 Unicode, Inc. All Rights reserved.
*
- * This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
- * No claims are made as to fitness for any particular purpose. No
- * warranties of any kind are expressed or implied. The recipient
- * agrees to determine applicability of information provided. If this
- * file has been provided on optical media by Unicode, Inc., the sole
- * remedy for any claim will be exchange of defective media within 90
- * days of receipt.
+ * This file is provided as-is by Unicode, Inc. (The Unicode Consortium).
+ * No claims are made as to fitness for any particular purpose. No
+ * warranties of any kind are expressed or implied. The recipient
+ * agrees to determine applicability of information provided. If this
+ * file has been provided on optical media by Unicode, Inc., the sole
+ * remedy for any claim will be exchange of defective media within 90
+ * days of receipt.
*
- * Unicode, Inc. hereby grants the right to freely use the information
- * supplied in this file in the creation of products supporting the
- * Unicode Standard, and to make copies of this file in any form for
- * internal or external distribution as long as this notice remains
- * attached.
+ * Unicode, Inc. hereby grants the right to freely use the information
+ * supplied in this file in the creation of products supporting the
+ * Unicode Standard, and to make copies of this file in any form for
+ * internal or external distribution as long as this notice remains
+ * attached.
*
* @version $Id$
* @package squirrelmail
/**
* Decode iso8859-11 string
* @param string $string Encoded string
- * @return string $string Decoded string
+ * @return string $string Decoded string
*/
function charset_decode_iso_8859_11 ($string) {
global $default_charset;
return $string;
$iso8859_11 = array(
- "\xA0" => ' ',
- "\xA1" => 'ก',
- "\xA2" => 'ข',
- "\xA3" => 'ฃ',
- "\xA4" => 'ค',
- "\xA5" => 'ฅ',
- "\xA6" => 'ฆ',
- "\xA7" => 'ง',
- "\xA8" => 'จ',
- "\xA9" => 'ฉ',
- "\xAA" => 'ช',
- "\xAB" => 'ซ',
- "\xAC" => 'ฌ',
- "\xAD" => 'ญ',
- "\xAE" => 'ฎ',
- "\xAF" => 'ฏ',
- "\xB0" => 'ฐ',
- "\xB1" => 'ฑ',
- "\xB2" => 'ฒ',
- "\xB3" => 'ณ',
- "\xB4" => 'ด',
- "\xB5" => 'ต',
- "\xB6" => 'ถ',
- "\xB7" => 'ท',
- "\xB8" => 'ธ',
- "\xB9" => 'น',
- "\xBA" => 'บ',
- "\xBB" => 'ป',
- "\xBC" => 'ผ',
- "\xBD" => 'ฝ',
- "\xBE" => 'พ',
- "\xBF" => 'ฟ',
- "\xC0" => 'ภ',
- "\xC1" => 'ม',
- "\xC2" => 'ย',
- "\xC3" => 'ร',
- "\xC4" => 'ฤ',
- "\xC5" => 'ล',
- "\xC6" => 'ฦ',
- "\xC7" => 'ว',
- "\xC8" => 'ศ',
- "\xC9" => 'ษ',
- "\xCA" => 'ส',
- "\xCB" => 'ห',
- "\xCC" => 'ฬ',
- "\xCD" => 'อ',
- "\xCE" => 'ฮ',
- "\xCF" => 'ฯ',
- "\xD0" => 'ะ',
- "\xD1" => 'ั',
- "\xD2" => 'า',
- "\xD3" => 'ำ',
- "\xD4" => 'ิ',
- "\xD5" => 'ี',
- "\xD6" => 'ึ',
- "\xD7" => 'ื',
- "\xD8" => 'ุ',
- "\xD9" => 'ู',
- "\xDA" => 'ฺ',
- "\xDF" => '฿',
- "\xE0" => 'เ',
- "\xE1" => 'แ',
- "\xE2" => 'โ',
- "\xE3" => 'ใ',
- "\xE4" => 'ไ',
- "\xE5" => 'ๅ',
- "\xE6" => 'ๆ',
- "\xE7" => '็',
- "\xE8" => '่',
- "\xE9" => '้',
- "\xEA" => '๊',
- "\xEB" => '๋',
- "\xEC" => '์',
- "\xED" => 'ํ',
- "\xEE" => '๎',
- "\xEF" => '๏',
- "\xF0" => '๐',
- "\xF1" => '๑',
- "\xF2" => '๒',
- "\xF3" => '๓',
- "\xF4" => '๔',
- "\xF5" => '๕',
- "\xF6" => '๖',
- "\xF7" => '๗',
- "\xF8" => '๘',
- "\xF9" => '๙',
- "\xFA" => '๚',
- "\xFB" => '๛'
+ "\xA0" => ' ',
+ "\xA1" => 'ก',
+ "\xA2" => 'ข',
+ "\xA3" => 'ฃ',
+ "\xA4" => 'ค',
+ "\xA5" => 'ฅ',
+ "\xA6" => 'ฆ',
+ "\xA7" => 'ง',
+ "\xA8" => 'จ',
+ "\xA9" => 'ฉ',
+ "\xAA" => 'ช',
+ "\xAB" => 'ซ',
+ "\xAC" => 'ฌ',
+ "\xAD" => 'ญ',
+ "\xAE" => 'ฎ',
+ "\xAF" => 'ฏ',
+ "\xB0" => 'ฐ',
+ "\xB1" => 'ฑ',
+ "\xB2" => 'ฒ',
+ "\xB3" => 'ณ',
+ "\xB4" => 'ด',
+ "\xB5" => 'ต',
+ "\xB6" => 'ถ',
+ "\xB7" => 'ท',
+ "\xB8" => 'ธ',
+ "\xB9" => 'น',
+ "\xBA" => 'บ',
+ "\xBB" => 'ป',
+ "\xBC" => 'ผ',
+ "\xBD" => 'ฝ',
+ "\xBE" => 'พ',
+ "\xBF" => 'ฟ',
+ "\xC0" => 'ภ',
+ "\xC1" => 'ม',
+ "\xC2" => 'ย',
+ "\xC3" => 'ร',
+ "\xC4" => 'ฤ',
+ "\xC5" => 'ล',
+ "\xC6" => 'ฦ',
+ "\xC7" => 'ว',
+ "\xC8" => 'ศ',
+ "\xC9" => 'ษ',
+ "\xCA" => 'ส',
+ "\xCB" => 'ห',
+ "\xCC" => 'ฬ',
+ "\xCD" => 'อ',
+ "\xCE" => 'ฮ',
+ "\xCF" => 'ฯ',
+ "\xD0" => 'ะ',
+ "\xD1" => 'ั',
+ "\xD2" => 'า',
+ "\xD3" => 'ำ',
+ "\xD4" => 'ิ',
+ "\xD5" => 'ี',
+ "\xD6" => 'ึ',
+ "\xD7" => 'ื',
+ "\xD8" => 'ุ',
+ "\xD9" => 'ู',
+ "\xDA" => 'ฺ',
+ "\xDF" => '฿',
+ "\xE0" => 'เ',
+ "\xE1" => 'แ',
+ "\xE2" => 'โ',
+ "\xE3" => 'ใ',
+ "\xE4" => 'ไ',
+ "\xE5" => 'ๅ',
+ "\xE6" => 'ๆ',
+ "\xE7" => '็',
+ "\xE8" => '่',
+ "\xE9" => '้',
+ "\xEA" => '๊',
+ "\xEB" => '๋',
+ "\xEC" => '์',
+ "\xED" => 'ํ',
+ "\xEE" => '๎',
+ "\xEF" => '๏',
+ "\xF0" => '๐',
+ "\xF1" => '๑',
+ "\xF2" => '๒',
+ "\xF3" => '๓',
+ "\xF4" => '๔',
+ "\xF5" => '๕',
+ "\xF6" => '๖',
+ "\xF7" => '๗',
+ "\xF8" => '๘',
+ "\xF9" => '๙',
+ "\xFA" => '๚',
+ "\xFB" => '๛'
);
$string = str_replace(array_keys($iso8859_11), array_values($iso8859_11), $string);
return $string;
}
-?>
+?>
\ No newline at end of file
*
* This file contains iso-8859-13 decoding function that is needed to read
* iso-8859-13 encoded mails in non-iso-8859-13 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-13.TXT
*
*
* This file contains iso-8859-14 decoding function that is needed to read
* iso-8859-14 encoded mails in non-iso-8859-14 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-14.TXT
*
/**
* Decode iso8859-14 encoded string
* @param string $string Encoded string
- * @return string $string Decoded string
+ * @return string $string Decoded string
*/
function charset_decode_iso_8859_14 ($string) {
global $default_charset;
*
* This file contains iso-8859-15 decoding function that is needed to read
* iso-8859-15 encoded mails in non-iso-8859-15 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-15.TXT
*
*
* This file contains iso-8859-16 decoding function that is needed to read
* iso-8859-16 encoded mails in non-iso-8859-16 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-16.TXT
*
*
* This file contains iso-8859-2 decoding function that is needed to read
* iso-8859-2 encoded mails in non-iso-8859-2 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT
*
*
* This file contains iso-8859-3 decoding function that is needed to read
* iso-8859-3 encoded mails in non-iso-8859-3 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-3.TXT
*
*
* This file contains iso-8859-4 decoding function that is needed to read
* iso-8859-4 encoded mails in non-iso-8859-4 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-4.TXT
*
*
* This file contains iso-8859-5 decoding function that is needed to read
* iso-8859-5 encoded mails in non-iso-8859-5 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-5.TXT
*
*
* This file contains iso-8859-6 decoding function that is needed to read
* iso-8859-6 encoded mails in non-iso-8859-6 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-6.TXT
*
*
* This file contains iso-8859-7 decoding function that is needed to read
* iso-8859-7 encoded mails in non-iso-8859-7 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-7.TXT
*
*
* This file contains iso-8859-8 decoding function that is needed to read
* iso-8859-8 encoded mails in non-iso-8859-8 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-8.TXT
*
*
* This file contains iso-8859-9 decoding function that is needed to read
* iso-8859-9 encoded mails in non-iso-8859-9 locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-9.TXT
*
*
* This file contains iso-ir-111 decoding function that is needed to read
* iso-ir-111 encoded mails in non-iso-ir-111 locale.
- *
+ *
* Original data taken from:
* http://crl.nmsu.edu/~mleisher/csets/ISOIR111.TXT
*
- * Original ID: Id: ISOIR111.TXT,v 1.2 1999/08/23 18:34:15 mleisher Exp
+ * Original ID: Id: ISOIR111.TXT,v 1.2 1999/08/23 18:34:15 mleisher Exp
* Name: ISO IR 111/ECMA Cyrillic to Unicode 2.1 mapping table.
- * Typed in by hand from
+ * Typed in by hand from
* http://www.fingertipsoft.com/ref/cyrillic/charsets.html
* Author: Mark Leisher <mleisher@crl.nmsu.edu>
* Date: 05 March 1998
*
* Original copyright:
* Copyright 1999 Computing Research Labs, New Mexico State University
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the ""Software""),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
*
* This file contains koi8-r decoding function that is needed to read
* koi8-r encoded mails in non-koi8-r locale.
- *
+ *
* Original data taken from:
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT
*
*
* This file contains koi8-u decoding function that is needed to read
* koi8-u encoded mails in non-koi8-u locale.
- *
+ *
* Original data taken from rfc2319
*
* Original copyright:
* ns_4551-1 encoded mails in non-ns_4551-1 locale.
*
* This is the same as ISO-646-NO and is used by some
- * Microsoft programs when sending Norwegian characters
+ * Microsoft programs when sending Norwegian characters
*
* @version $Id$
* @package squirrelmail
* ns_4551_1 decoding function
*
* @param string $string
- * @return string
+ * @return string
*/
function charset_decode_ns_4551_1 ($string) {
/*
*
* This file contains tis620 decoding function that is needed to read
* tis620 encoded mails in non-tis620 locale.
- *
+ *
* Original data taken from:
* http://www.inet.co.th/cyberclub/trin/thairef/tis620-iso10646.html
*
* Original copyright:
* Note: The information contained herein is provided as-is. It was
* complied from various references given at the end of the page.
- * The author (trin@mozart.inet.co.th) believes all information
+ * The author (trin@mozart.inet.co.th) believes all information
* presented here is accurate.
*
* References
* \a\b\c characters are decoded to html code octdec(a-340)*64*64 + octdec(b-200)*64 + octdec(c-200)
*
* decoding cycle is unfinished. please test and report problems to tokul@users.sourceforge.net
- *
+ *
* @version $Id$
* @package squirrelmail
* @subpackage decode
global $optpage_save_error;
if (! is_array($optpage_save_error) )
- $optpage_save_error=array();
+ $optpage_save_error=array();
$optpage_save_error=array_merge($optpage_save_error,array($message));
}
$string=preg_replace("/&#([0-9]+);/e","unicodetocp1251('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetocp1251(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return cp1251 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_cp1251
+ *
+ * This function is used internally by charset_encode_cp1251
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/cp1251.php is
- * included.
+ * Don't use it or make sure, that functions/encode/cp1251.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string cp1251 character
$string=preg_replace("/&#([0-9]+);/e","unicodetocp1255('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetocp1255(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return cp1255 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_cp1255
+ *
+ * This function is used internally by charset_encode_cp1255
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/cp1255.php is
- * included.
+ * Don't use it or make sure, that functions/encode/cp1255.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string cp1255 character
$string=preg_replace("/&#([0-9]+);/e","unicodetocp1256('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetocp1256(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return cp1256 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_cp1256
+ *
+ * This function is used internally by charset_encode_cp1256
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/cp1256.php is
- * included.
+ * Don't use it or make sure, that functions/encode/cp1256.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string cp1256 character
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88591('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoiso88591(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return iso-8859-1 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_iso_8859_1
+ *
+ * This function is used internally by charset_encode_iso_8859_1
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/iso_8859_1.php is
- * included.
+ * Don't use it or make sure, that functions/encode/iso_8859_1.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string iso-8859-1 character
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso885915('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoiso885915(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return iso-8859-15 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_iso_8859_15
+ *
+ * This function is used internally by charset_encode_iso_8859_15
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/iso_8859_15.php is
- * included.
+ * Don't use it or make sure, that functions/encode/iso_8859_15.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string iso-8859-15 character
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88592('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoiso88592(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return iso-8859-2 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_iso_8859_2
+ *
+ * This function is used internally by charset_encode_iso_8859_2
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/iso_8859_2.php is
- * included.
+ * Don't use it or make sure, that functions/encode/iso_8859_2.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string iso-8859-2 character
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88597('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoiso88597(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return iso-8859-7 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_iso_8859_7
+ *
+ * This function is used internally by charset_encode_iso_8859_7
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/iso_8859_7.php is
- * included.
+ * Don't use it or make sure, that functions/encode/iso_8859_7.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string iso-8859-7 character
$string=preg_replace("/&#([0-9]+);/e","unicodetoiso88599('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoiso88599(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return iso-8859-9 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_iso_8859_9
+ *
+ * This function is used internally by charset_encode_iso_8859_9
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/iso_8859_9.php is
- * included.
+ * Don't use it or make sure, that functions/encode/iso_8859_9.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string iso-8859-9 character
$string=preg_replace("/&#([0-9]+);/e","unicodetokoi8r('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetokoi8r(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return koi8-r symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_koi8_r
+ *
+ * This function is used internally by charset_encode_koi8_r
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/koi8_r.php is
- * included.
+ * Don't use it or make sure, that functions/encode/koi8_r.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string koi8-r character
$string=preg_replace("/&#([0-9]+);/e","unicodetokoi8u('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetokoi8u(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return koi8-u symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_koi8_u
+ *
+ * This function is used internally by charset_encode_koi8_u
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/koi8_u.php is
- * included.
+ * Don't use it or make sure, that functions/encode/koi8_u.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string koi8-u character
$string=preg_replace("/&#([0-9]+);/e","unicodetotis620('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetotis620(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return tis-620 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_tis_620
+ *
+ * This function is used internally by charset_encode_tis_620
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/tis_620.php is
- * included.
+ * Don't use it or make sure, that functions/encode/tis_620.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string tis-620 character
$string=preg_replace("/&#([0-9]+);/e","unicodetousascii('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetousascii(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return us-ascii symbol when unicode character number is provided
- *
+ *
* This function is used internally by charset_encode_us_ascii
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/us_ascii.php is
- * included.
+ * Don't use it or make sure, that functions/encode/us_ascii.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string us-ascii character
$string=preg_replace("/&#([0-9]+);/e","unicodetoutf8('\\1')",$string);
// $string=preg_replace("/&#[xX]([0-9A-F]+);/e","unicodetoutf8(hexdec('\\1'))",$string);
-
+
return $string;
}
/**
* Return utf8 symbol when unicode character number is provided
- *
- * This function is used internally by charset_encode_utf_8
+ *
+ * This function is used internally by charset_encode_utf_8
* function. It might be unavailable to other squirrelmail functions.
- * Don't use it or make sure, that functions/encode/utf_8.php is
- * included.
+ * Don't use it or make sure, that functions/encode/utf_8.php is
+ * included.
*
* @param int $var decimal unicode value
* @return string utf8 character
$binVal = str_pad (decbin ($var), 11, "0", STR_PAD_LEFT);
$binPart1 = substr ($binVal, 0, 5);
$binPart2 = substr ($binVal, 5);
-
+
$char1 = chr (192 + bindec ($binPart1));
$char2 = chr (128 + bindec ($binPart2));
$ret = $char1 . $char2;
'/.+(\\?'.$var.')=(.*)$/AU', /* at front and only var */
'/.+(\\&'.$var.')=(.*)$/AU' /* at the end */
);
- preg_replace('/&/','&',$url);
+ preg_replace('/&/','&',$url);
switch (true) {
case (preg_match($pat_a[0],$url,$regs)):
$k = $regs[1];
if ($k) {
if ($val) {
$rpl = "$k=$val";
- if ($link) {
- $rpl = preg_replace('/&/','&',$rpl);
- }
+ if ($link) {
+ $rpl = preg_replace('/&/','&',$rpl);
+ }
} else {
$rpl = '';
}
*/
header("Location:../../src/login.php\n\n");
exit();
-?>
+?>
\ No newline at end of file
* @subpackage strings
*/
$sq_html_ent_table = array_merge($sq_html_ent_table,
- array("\xA0" => ' ',
- "\xA1" => '¡',
- "\xA2" => '¢',
- "\xA3" => '£',
- "\xA4" => '¤',
- "\xA5" => '¥',
- "\xA6" => '¦',
- "\xA7" => '§',
- "\xA8" => '¨',
- "\xA9" => '©',
- "\xAA" => 'ª',
- "\xAB" => '«',
- "\xAC" => '¬',
- "\xAD" => '­',
- "\xAE" => '®',
- "\xAF" => '¯',
- "\xB0" => '°',
- "\xB1" => '±',
- "\xB2" => '²',
- "\xB3" => '³',
- "\xB4" => '´',
- "\xB5" => 'µ',
- "\xB6" => '¶',
- "\xB7" => '·',
- "\xB8" => '¸',
- "\xB9" => '¹',
- "\xBA" => 'º',
- "\xBB" => '»',
- "\xBC" => '¼',
- "\xBD" => '½',
- "\xBE" => '¾',
- "\xBF" => '¿',
- "\xC0" => 'À',
- "\xC1" => 'Á',
- "\xC2" => 'Â',
- "\xC3" => 'Ã',
- "\xC4" => 'Ä',
- "\xC5" => 'Å',
- "\xC6" => 'Æ',
- "\xC7" => 'Ç',
- "\xC8" => 'È',
- "\xC9" => 'É',
- "\xCA" => 'Ê',
- "\xCB" => 'Ë',
- "\xCC" => 'Ì',
- "\xCD" => 'Í',
- "\xCE" => 'Î',
- "\xCF" => 'Ï',
- "\xD0" => 'Ð',
- "\xD1" => 'Ñ',
- "\xD2" => 'Ò',
- "\xD3" => 'Ó',
- "\xD4" => 'Ô',
- "\xD5" => 'Õ',
- "\xD6" => 'Ö',
- "\xD7" => '×',
- "\xD8" => 'Ø',
- "\xD9" => 'Ù',
- "\xDA" => 'Ú',
- "\xDB" => 'Û',
- "\xDC" => 'Ü',
- "\xDD" => 'Ý',
- "\xDE" => 'Þ',
- "\xDF" => 'ß',
- "\xE0" => 'à',
- "\xE1" => 'á',
- "\xE2" => 'â',
- "\xE3" => 'ã',
- "\xE4" => 'ä',
- "\xE5" => 'å',
- "\xE6" => 'æ',
- "\xE7" => 'ç',
- "\xE8" => 'è',
- "\xE9" => 'é',
- "\xEA" => 'ê',
- "\xEB" => 'ë',
- "\xEC" => 'ì',
- "\xED" => 'í',
- "\xEE" => 'î',
- "\xEF" => 'ï',
- "\xF0" => 'ð',
- "\xF1" => 'ñ',
- "\xF2" => 'ò',
- "\xF3" => 'ó',
- "\xF4" => 'ô',
- "\xF5" => 'õ',
- "\xF6" => 'ö',
- "\xF7" => '÷',
- "\xF8" => 'ø',
- "\xF9" => 'ù',
- "\xFA" => 'ú',
- "\xFB" => 'û',
- "\xFC" => 'ü',
- "\xFD" => 'ý',
- "\xFE" => 'þ',
- "\xFF" => 'ÿ')
- );
+ array("\xA0" => ' ',
+ "\xA1" => '¡',
+ "\xA2" => '¢',
+ "\xA3" => '£',
+ "\xA4" => '¤',
+ "\xA5" => '¥',
+ "\xA6" => '¦',
+ "\xA7" => '§',
+ "\xA8" => '¨',
+ "\xA9" => '©',
+ "\xAA" => 'ª',
+ "\xAB" => '«',
+ "\xAC" => '¬',
+ "\xAD" => '­',
+ "\xAE" => '®',
+ "\xAF" => '¯',
+ "\xB0" => '°',
+ "\xB1" => '±',
+ "\xB2" => '²',
+ "\xB3" => '³',
+ "\xB4" => '´',
+ "\xB5" => 'µ',
+ "\xB6" => '¶',
+ "\xB7" => '·',
+ "\xB8" => '¸',
+ "\xB9" => '¹',
+ "\xBA" => 'º',
+ "\xBB" => '»',
+ "\xBC" => '¼',
+ "\xBD" => '½',
+ "\xBE" => '¾',
+ "\xBF" => '¿',
+ "\xC0" => 'À',
+ "\xC1" => 'Á',
+ "\xC2" => 'Â',
+ "\xC3" => 'Ã',
+ "\xC4" => 'Ä',
+ "\xC5" => 'Å',
+ "\xC6" => 'Æ',
+ "\xC7" => 'Ç',
+ "\xC8" => 'È',
+ "\xC9" => 'É',
+ "\xCA" => 'Ê',
+ "\xCB" => 'Ë',
+ "\xCC" => 'Ì',
+ "\xCD" => 'Í',
+ "\xCE" => 'Î',
+ "\xCF" => 'Ï',
+ "\xD0" => 'Ð',
+ "\xD1" => 'Ñ',
+ "\xD2" => 'Ò',
+ "\xD3" => 'Ó',
+ "\xD4" => 'Ô',
+ "\xD5" => 'Õ',
+ "\xD6" => 'Ö',
+ "\xD7" => '×',
+ "\xD8" => 'Ø',
+ "\xD9" => 'Ù',
+ "\xDA" => 'Ú',
+ "\xDB" => 'Û',
+ "\xDC" => 'Ü',
+ "\xDD" => 'Ý',
+ "\xDE" => 'Þ',
+ "\xDF" => 'ß',
+ "\xE0" => 'à',
+ "\xE1" => 'á',
+ "\xE2" => 'â',
+ "\xE3" => 'ã',
+ "\xE4" => 'ä',
+ "\xE5" => 'å',
+ "\xE6" => 'æ',
+ "\xE7" => 'ç',
+ "\xE8" => 'è',
+ "\xE9" => 'é',
+ "\xEA" => 'ê',
+ "\xEB" => 'ë',
+ "\xEC" => 'ì',
+ "\xED" => 'í',
+ "\xEE" => 'î',
+ "\xEF" => 'ï',
+ "\xF0" => 'ð',
+ "\xF1" => 'ñ',
+ "\xF2" => 'ò',
+ "\xF3" => 'ó',
+ "\xF4" => 'ô',
+ "\xF5" => 'õ',
+ "\xF6" => 'ö',
+ "\xF7" => '÷',
+ "\xF8" => 'ø',
+ "\xF9" => 'ù',
+ "\xFA" => 'ú',
+ "\xFB" => 'û',
+ "\xFC" => 'ü',
+ "\xFD" => 'ý',
+ "\xFE" => 'þ',
+ "\xFF" => 'ÿ')
+ );
?>
\ No newline at end of file
*
* SquirrelMail provides own implementation of htmlentities() and
* get_html_translation_table() functions. Functions are called
- * sq_get_html_translation_table() and sq_htmlentities(). They are
+ * sq_get_html_translation_table() and sq_htmlentities(). They are
* included in functions/strings.php
*
* sq_htmlentities uses same syntax as functions available in php 4.1.0
* it returns translation table defined by charset. Function defaults to us-ascii charset
* and not to iso-8859-1.
*
- * Why own functions are used instead of htmlspecialchars() and
+ * Why own functions are used instead of htmlspecialchars() and
* htmlentities() provided by php.
*
* <ul>
* @subpackage strings
*/
$sq_html_ent_table = array_merge($sq_html_ent_table,
- array(// Latin1
- "\xC2\xA0" => ' ',
- "\xC2\xA1" => '¡',
- "\xC2\xA2" => '¢',
- "\xC2\xA3" => '£',
- "\xC2\xA4" => '¤',
- "\xC2\xA5" => '¥',
- "\xC2\xA6" => '¦',
- "\xC2\xA7" => '§',
- "\xC2\xA8" => '¨',
- "\xC2\xA9" => '©',
- "\xC2\xAA" => 'ª',
- "\xC2\xAB" => '«',
- "\xC2\xAC" => '¬',
- "\xC2\xAD" => '­',
- "\xC2\xAE" => '®',
- "\xC2\xAF" => '¯',
- "\xC2\xB0" => '°',
- "\xC2\xB1" => '±',
- "\xC2\xB2" => '²',
- "\xC2\xB3" => '³',
- "\xC2\xB4" => '´',
- "\xC2\xB5" => 'µ',
- "\xC2\xB6" => '¶',
- "\xC2\xB7" => '·',
- "\xC2\xB8" => '¸',
- "\xC2\xB9" => '¹',
- "\xC2\xBA" => 'º',
- "\xC2\xBB" => '»',
- "\xC2\xBC" => '¼',
- "\xC2\xBD" => '½',
- "\xC2\xBE" => '¾',
- "\xC2\xBF" => '¿',
- "\xC3\x80" => 'À',
- "\xC3\x81" => 'Á',
- "\xC3\x82" => 'Â',
- "\xC3\x83" => 'Ã',
- "\xC3\x84" => 'Ä',
- "\xC3\x85" => 'Å',
- "\xC3\x86" => 'Æ',
- "\xC3\x87" => 'Ç',
- "\xC3\x88" => 'È',
- "\xC3\x89" => 'É',
- "\xC3\x8A" => 'Ê',
- "\xC3\x8B" => 'Ë',
- "\xC3\x8C" => 'Ì',
- "\xC3\x8D" => 'Í',
- "\xC3\x8E" => 'Î',
- "\xC3\x8F" => 'Ï',
- "\xC3\x90" => 'Ð',
- "\xC3\x91" => 'Ñ',
- "\xC3\x92" => 'Ò',
- "\xC3\x93" => 'Ó',
- "\xC3\x94" => 'Ô',
- "\xC3\x95" => 'Õ',
- "\xC3\x96" => 'Ö',
- "\xC3\x97" => '×',
- "\xC3\x98" => 'Ø',
- "\xC3\x99" => 'Ù',
- "\xC3\x9A" => 'Ú',
- "\xC3\x9B" => 'Û',
- "\xC3\x9C" => 'Ü',
- "\xC3\x9D" => 'Ý',
- "\xC3\x9E" => 'Þ',
- "\xC3\x9F" => 'ß',
- "\xC3\xA0" => 'à',
- "\xC3\xA1" => 'á',
- "\xC3\xA2" => 'â',
- "\xC3\xA3" => 'ã',
- "\xC3\xA4" => 'ä',
- "\xC3\xA5" => 'å',
- "\xC3\xA6" => 'æ',
- "\xC3\xA7" => 'ç',
- "\xC3\xA8" => 'è',
- "\xC3\xA9" => 'é',
- "\xC3\xAA" => 'ê',
- "\xC3\xAB" => 'ë',
- "\xC3\xAC" => 'ì',
- "\xC3\xAD" => 'í',
- "\xC3\xAE" => 'î',
- "\xC3\xAF" => 'ï',
- "\xC3\xB0" => 'ð',
- "\xC3\xB1" => 'ñ',
- "\xC3\xB2" => 'ò',
- "\xC3\xB3" => 'ó',
- "\xC3\xB4" => 'ô',
- "\xC3\xB5" => 'õ',
- "\xC3\xB6" => 'ö',
- "\xC3\xB7" => '÷',
- "\xC3\xB8" => 'ø',
- "\xC3\xB9" => 'ù',
- "\xC3\xBA" => 'ú',
- "\xC3\xBB" => 'û',
- "\xC3\xBC" => 'ü',
- "\xC3\xBD" => 'ý',
- "\xC3\xBE" => 'þ',
- "\xC3\xBF" => 'ÿ',
- // Latin Extended-A
- "\xC5\x92" => 'Œ',
- "\xC5\x93" => 'œ',
- "\xC5\xA0" => 'Š',
- "\xC5\xA1" => 'š',
- "\xC5\xB8" => 'Ÿ',
- // Spacing Modifier Letters
- "\xCB\x86" => 'ˆ',
- "\xCB\x9C" => '˜',
- // General Punctuation
- "\xE2\x80\x82" => ' ',
- "\xE2\x80\x83" => ' ',
- "\xE2\x80\x89" => ' ',
- "\xE2\x80\x8C" => '‌',
- "\xE2\x80\x8D" => '‍',
- "\xE2\x80\x8E" => '‎',
- "\xE2\x80\x8F" => '‏',
- "\xE2\x80\x93" => '–',
- "\xE2\x80\x94" => '—',
- "\xE2\x80\x98" => '‘',
- "\xE2\x80\x99" => '’',
- "\xE2\x80\x9A" => '‚',
- "\xE2\x80\x9C" => '“',
- "\xE2\x80\x9D" => '”',
- "\xE2\x80\x9E" => '„',
- "\xE2\x80\xA0" => '†',
- "\xE2\x80\xA1" => '‡',
- "\xE2\x80\xB0" => '‰',
- "\xE2\x80\xB9" => '‹',
- "\xE2\x80\xBA" => '›',
- "\xE2\x82\xAC" => '€',
- // Latin Extended-B
- "\xC6\x92" => 'ƒ',
- // Greek
- "\xCE\x91" => 'Α',
- "\xCE\x92" => 'Β',
- "\xCE\x93" => 'Γ',
- "\xCE\x94" => 'Δ',
- "\xCE\x95" => 'Ε',
- "\xCE\x96" => 'Ζ',
- "\xCE\x97" => 'Η',
- "\xCE\x98" => 'Θ',
- "\xCE\x99" => 'Ι',
- "\xCE\x9A" => 'Κ',
- "\xCE\x9B" => 'Λ',
- "\xCE\x9C" => 'Μ',
- "\xCE\x9D" => 'Ν',
- "\xCE\x9E" => 'Ξ',
- "\xCE\x9F" => 'Ο',
- "\xCE\xA0" => 'Π',
- "\xCE\xA1" => 'Ρ',
- "\xCE\xA3" => 'Σ',
- "\xCE\xA4" => 'Τ',
- "\xCE\xA5" => 'Υ',
- "\xCE\xA6" => 'Φ',
- "\xCE\xA7" => 'Χ',
- "\xCE\xA8" => 'Ψ',
- "\xCE\xA9" => 'Ω',
- "\xCE\xB1" => 'α',
- "\xCE\xB2" => 'β',
- "\xCE\xB3" => 'γ',
- "\xCE\xB4" => 'δ',
- "\xCE\xB5" => 'ε',
- "\xCE\xB6" => 'ζ',
- "\xCE\xB7" => 'η',
- "\xCE\xB8" => 'θ',
- "\xCE\xB9" => 'ι',
- "\xCE\xBA" => 'κ',
- "\xCE\xBB" => 'λ',
- "\xCE\xBC" => 'μ',
- "\xCE\xBD" => 'ν',
- "\xCE\xBE" => 'ξ',
- "\xCE\xBF" => 'ο',
- "\xCF\x80" => 'π',
- "\xCF\x81" => 'ρ',
- "\xCF\x82" => 'ς',
- "\xCF\x83" => 'σ',
- "\xCF\x84" => 'τ',
- "\xCF\x85" => 'υ',
- "\xCF\x86" => 'φ',
- "\xCF\x87" => 'χ',
- "\xCF\x88" => 'ψ',
- "\xCF\x89" => 'ω',
- "\xCF\x91" => 'ϑ',
- "\xCF\x92" => 'ϒ',
- "\xCF\x96" => 'ϖ',
- // General Punctuation
- "\xE2\x80\xA2" => '•',
- "\xE2\x80\xA6" => '…',
- "\xE2\x80\xB2" => '′',
- "\xE2\x80\xB3" => '″',
- "\xE2\x80\xBE" => '‾',
- "\xE2\x81\x84" => '⁄',
- // Letterlike Symbols
- "\xE2\x84\x98" => '℘',
- "\xE2\x84\x91" => 'ℑ',
- "\xE2\x84\x9C" => 'ℜ',
- "\xE2\x84\xA2" => '™',
- "\xE2\x84\xB5" => 'ℵ',
- // Arrows
- "\xE2\x86\x90" => '←',
- "\xE2\x86\x91" => '↑',
- "\xE2\x86\x92" => '→',
- "\xE2\x86\x93" => '↓',
- "\xE2\x86\x94" => '↔',
- "\xE2\x86\xB5" => '↵',
- "\xE2\x87\x90" => '⇐',
- "\xE2\x87\x91" => '⇑',
- "\xE2\x87\x92" => '⇒',
- "\xE2\x87\x93" => '⇓',
- "\xE2\x87\x94" => '⇔',
- // Mathematical Operators
- "\xE2\x88\x80" => '∀',
- "\xE2\x88\x82" => '∂',
- "\xE2\x88\x83" => '∃',
- "\xE2\x88\x85" => '∅',
- "\xE2\x88\x87" => '∇',
- "\xE2\x88\x88" => '∈',
- "\xE2\x88\x89" => '∉',
- "\xE2\x88\x8B" => '∋',
- "\xE2\x88\x8F" => '∏',
- "\xE2\x88\x91" => '∑',
- "\xE2\x88\x92" => '−',
- "\xE2\x88\x97" => '∗',
- "\xE2\x88\x9A" => '√',
- "\xE2\x88\x9D" => '∝',
- "\xE2\x88\x9E" => '∞',
- "\xE2\x88\xA0" => '∠',
- "\xE2\x88\xA7" => '∧',
- "\xE2\x88\xA8" => '∨',
- "\xE2\x88\xA9" => '∩',
- "\xE2\x88\xAA" => '∪',
- "\xE2\x88\xAB" => '∫',
- "\xE2\x88\xB4" => '∴',
- "\xE2\x88\xBC" => '∼',
- "\xE2\x89\x85" => '≅',
- "\xE2\x89\x88" => '≈',
- "\xE2\x89\xA0" => '≠',
- "\xE2\x89\xA1" => '≡',
- "\xE2\x89\xA4" => '≤',
- "\xE2\x89\xA5" => '≥',
- "\xE2\x8A\x82" => '⊂',
- "\xE2\x8A\x83" => '⊃',
- "\xE2\x8A\x84" => '⊄',
- "\xE2\x8A\x86" => '⊆',
- "\xE2\x8A\x87" => '⊇',
- "\xE2\x8A\x95" => '⊕',
- "\xE2\x8A\x97" => '⊗',
- "\xE2\x8A\xA5" => '⊥',
- "\xE2\x8B\x85" => '⋅',
- // Miscellaneous Technical
- "\xE2\x8C\x88" => '⌈',
- "\xE2\x8C\x89" => '⌉',
- "\xE2\x8C\x8A" => '⌊',
- "\xE2\x8C\x8B" => '⌋',
- "\xE2\x8C\xA9" => '⟨',
- "\xE2\x8C\xAA" => '⟩',
- // Geometric Shapes
- "\xE2\x97\x8A" => '◊',
- // Miscellaneous Symbols
- "\xE2\x99\xA0" => '♠',
-