cvs: pear /Services_Ebay/Ebay Session.php
| From: | Adam Trachtenberg | Date: | Sat, 16 Apr 2005 22:19:02 +0000 |
| Subject: | cvs: pear /Services_Ebay/Ebay Session.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31199@lists.php.net to get a copy of this message | ||
amt Sat Apr 16 18:19:02 2005 EDT
Modified files:
/pear/Services_Ebay/Ebay Session.php
Log:
Update encoding default to UTF-8
http://cvs.php.net/diff.php/pear/Services_Ebay/Ebay/Session.php?r1=1.12&r2=1.13&ty=u
Index: pear/Services_Ebay/Ebay/Session.php
diff -u pear/Services_Ebay/Ebay/Session.php:1.12 pear/Services_Ebay/Ebay/Session.php:1.13
--- pear/Services_Ebay/Ebay/Session.php:1.12 Sat Jan 1 10:48:46 2005
+++ pear/Services_Ebay/Ebay/Session.php Sat Apr 16 18:19:01 2005
@@ -16,7 +16,7 @@
// | Authors: Stephan Schmidt <schst@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Session.php,v 1.12 2005/01/01 15:48:46 schst Exp $
+// $Id: Session.php,v 1.13 2005/04/16 22:19:01 amt Exp $
/**
* Services/Ebay/Session.php
@@ -106,7 +106,7 @@
private $transportDriver = 'Curl';
/**
- * transpor driver
+ * transport driver
*
* @var object Services_Ebay_Transport
*/
@@ -201,11 +201,10 @@
* @param string developer id
* @param string application id
* @param string certificate id
- * @param string encoding to use: in production environments you should use UTF-8, when
- * working with the sandbox, use ISO-8859-1 as the sabdbox
- * does not (yet) support UTF-8 encoding
+ * @param string encoding to use: As of May 15, 2005, you
+ * must use UTF-8 in Sandbox and Production.
*/
- public function __construct($devId, $appId, $certId, $encoding = 'ISO-8859-1')
+ public function __construct($devId, $appId, $certId, $encoding = 'UTF-8')
{
$this->devId = $devId;
$this->appId = $appId;
@@ -233,7 +232,7 @@
$opts = array(
'forceEnum' => array('Error'),
'encoding' => 'UTF-8',
- 'targetEncoding' => 'ISO-8859-1'
+ 'targetEncoding' => 'UTF-8',
);
$this->us = new XML_Unserializer($opts);
}