note 16631 deleted from function.chr by jimw

From: Date: Thu, 08 Nov 2001 00:05:30 +0000
Subject: note 16631 deleted from function.chr by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20574@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

« previous php.notes (#20574) next »