Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: how to change character to % character? Date: Sun, 20 Oct 2013 21:17:38 +0200 Lines: 18 Message-ID: <52642C52.9010400@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net 5TUm33t69VnIp4Pt6/1UJwvWbSoL9MbfHw1925PsHJbUJuau+6 Cancel-Lock: sha1:T76KPRKhKAlSZzyy1mBLqzvbqN4= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: X-Enigmail-Version: 1.5.2 Xref: csiph.com comp.lang.php:11501 richard, 2013-10-20 18:27: > I noticed that whenever a song is clicked on that has an apostrophe in the > name, an error is now being generated. > The song still plays and the name is reported correctly. > > So how can I detect any and all 's within a string and convert them to the > %27 version? > > I had a look at preg-match and don't think that will help. See . -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de