FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to change character to % character?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to change character to % character? [message #183325 is a reply to message #183320] Sun, 20 October 2013 17:06 Go to previous messageGo to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
On Sun, 20 Oct 2013 12:40:40 -0400, Lew Pitcher wrote:

> On Sunday 20 October 2013 12:27, in comp.lang.php, "richard"
> <noreply(at)example(dot)com> wrote:
>
>> 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?
>
> Use the rawurlencode() function
>
> http://www.php.net/manual/en/function.rawurlencode.php
>
> [snip]

But will the javascript accept that?
We shall see.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Load Data from XML url
Next Topic: Re: Help with app Crash
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 17:09:58 GMT 2024

Total time taken to generate the page: 0.04184 seconds