You are here: RE: [PHP] Strange characters « PHP « IT news, forums, messages
RE: [PHP] Strange characters

Posted by Richard Lynch on 05/12/05 05:13

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация