RE: Strange characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux