RE: [PHP] Strange characters

From: Date: Thu, 12 May 2005 02:13:46 +0000
Subject: RE: [PHP] Strange characters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-215004@lists.php.net to get a copy of this message
On Wed, May 11, 2005 5:32 am, Carl Furst said: > Yeah, the solution I use was posted to the user comments on the strtr > command page which is also documented as a better solution than > str_replace > except for the one caveat that it will only try and change a character > once, > and some of the hex codes on that page don't really work, because the > representation, say, of a MS Word dash (hex: 0x96) is not the same number > on > Linux. So if you try and scrub it on the Linux side it won't find it. I dunno what the hell 0x96 is in MS Word, but if you want a dash, use an ASCII dash and be done with it. :-) Or, if you REALLY want that "ASCII extended" Linux dash (assuming it exists) I'm sure you can strtr(0x96, 0xYY, $string) and get it. Then it won't work on Windows, of course, but who cares about Windows? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#215004) next »