URLEncode accent-i

J. Landman Gay jacque at hyperactivesw.com
Wed Jun 25 16:47:51 EDT 2014

On 6/25/2014, 3:29 PM, Trevor DeVore wrote:
> On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay <jacque at hyperactivesw.com>
> wrote:
>> The server wants UTF8 and I think (but am not sure) that I need to get:
>>   Santer%C3%ADa
> Convert the string to UTF8 prior to urlencoding it:
> put "Santería" into theStr
> put unidecode(uniencode(theStr), "utf8") into thestr
> put urlencode(theStr)

Thanks (again) Trevor, that seems to do it. I'll see if the server likes 
that incarnation.

Pierre, the data is going to a Rails script, which does some things and 
then puts it into a database. I'm not actually sure what type of 
database it is, but I don't send to it directly.

Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

More information about the Use-livecode mailing list