From: leonardobasilio at ig dot com dot br
Operating system: Windows 2003
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: chr and ord don't work according to the ascii table given by
the manual
Description:
------------
I'm working with PHP + SQL Server 7.0. When retrieving data with
characters like "�","�","�", they are changed into "�","�","�". Doing:
<?=chr("�")?>
I get 135, which, according to the ascii table indicated by the manual, is
"�", not "�".
Reproduce code:
---------------
<?
echo ord("�");
?>
Expected result:
----------------
I expected to get the right ascii code.
Actual result:
--------------
ord("�") is returning 231, while the ascii table says it should be 135.
--
Edit bug report at http://bugs.php.net/?id=32796&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32796&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32796&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32796&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32796&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32796&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32796&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32796&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32796&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32796&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32796&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32796&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32796&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32796&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32796&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32796&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32796&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32796&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32796&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32796&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32796&r=mysqlcfg