#32796 [Opn->Bgs]: chr and ord don't work according to the ascii table given by the manual
| From: | vrana@php.net | Date: | Fri, 22 Apr 2005 07:24:04 +0000 |
| Subject: | #32796 [Opn->Bgs]: chr and ord don't work according to the ascii table given by the manual | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367954@lists.php.net to get a copy of this message | ||
ID: 32796
Updated by: vrana@php.net
Reported By: leonardobasilio at ig dot com dot br
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Windows 2003
PHP Version: Irrelevant
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Upper half of the characters table depends on character set.
Previous Comments:
------------------------------------------------------------------------
[2005-04-21 23:51:30] leonardobasilio at ig dot com dot br
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 this bug report at http://bugs.php.net/?id=32796&edit=1