note 16631 added to function.chr

From: Date: Wed, 07 Nov 2001 13:34:29 +0000
Subject: note 16631 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-20545@lists.php.net to get a copy of this message
Correct me is I'm wrong : chr() does not always give the correct ASCII character, for example (using the Arial font if that matters) : <pre>print chr(128);</pre> prints € which is ASCII 0128. It should print Ç which is ASCII 128. Yes they are different, you can check eg in MS Word or print the ASCII table from within a php/html page. (Or is this some MS "feature" ?) sprinf("%c",128)/printf("%c",128) both do the same thing. Rob -- http://www.php.net/manual/en/function.chr.php http://master.php.net/manage/user-notes.php?action=edit+16631 http://master.php.net/manage/user-notes.php?action=delete+16631 http://master.php.net/manage/user-notes.php?action=reject+16631

« previous php.notes (#20545) next »