php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32796 chr and ord don't work according to the ascii table given by the manual
Submitted: 2005-04-21 23:51 UTC Modified: 2005-04-22 09:24 UTC
From: leonardobasilio at ig dot com dot br Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows 2003
Private report: No CVE-ID: None
 [2005-04-21 23:51 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-22 09:24 UTC] vrana@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 01:01:31 2024 UTC