Re: URLEncode accent-i

2014-06-25 Thread J. Landman Gay

I had high hopes but converting to ISO didn't work. That yields: Santer%EDa

The server wants UTF8 and I think (but am not sure) that I need to get:
 Santer%C3%ADa

I haven't found the right combination of uniEncode/Decode and urlEncode 
that doesn't make a mess of the string. Does anyone know how to do this 
without manually replacing every possible combination of high-ascii 
characters?


On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote:

Hi,

this is because you are working on Mac. You have to convert it first from Mac 
to Iso.

A URLencode(mactoiso(Santería))

should do.

Regards,

Matthias


Am 23.06.2014 um 22:25 schrieb J. Landman Gay jac...@hyperactivesw.com:


I need to send this word to the server: Santería

When urlEncoded, LiveCode produces: Santer%92a

The encoded character is a backslash instead of the accent-i. The server 
doesn't recognize that, and online URL encoders give various different 
encodings depending on what source I designate (ascii, UTF8, UTF16, etc.)

Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, 
we're not ready to make a switch yet.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: URLEncode accent-i

2014-06-25 Thread Pierre Sahores
Hi Jacqueline,

When you say « I need to send this word to the server: Santería » :

Are you speaking from the web server or from the database server ?

If the database server is your problematic target, witch one are you using :

PostgreSQL;
MySQL;
SQLite;
other ?

I got, times ago such kind of troubles against PostgreSQL before solving them 
definitively in using a simple and trustable solution i can explicit if 
appropriate.

Best Regards,

Pierre 


Le 25 juin 2014 à 21:35, J. Landman Gay jac...@hyperactivesw.com a écrit :

 I had high hopes but converting to ISO didn't work. That yields: Santer%EDa
 
 The server wants UTF8 and I think (but am not sure) that I need to get:
 Santer%C3%ADa
 
 I haven't found the right combination of uniEncode/Decode and urlEncode that 
 doesn't make a mess of the string. Does anyone know how to do this without 
 manually replacing every possible combination of high-ascii characters?
 
 On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote:
 Hi,
 
 this is because you are working on Mac. You have to convert it first from 
 Mac to Iso.
 
 A URLencode(mactoiso(Santería))
 
 should do.
 
 Regards,
 
 Matthias
 
 
 Am 23.06.2014 um 22:25 schrieb J. Landman Gay jac...@hyperactivesw.com:
 
 I need to send this word to the server: Santería
 
 When urlEncoded, LiveCode produces: Santer%92a
 
 The encoded character is a backslash instead of the accent-i. The server 
 doesn't recognize that, and online URL encoders give various different 
 encodings depending on what source I designate (ascii, UTF8, UTF16, etc.)
 
 Where did LC get %92, and how would I correct the encoding? I'm using LC 
 6.6.1, we're not ready to make a switch yet.
 
 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: URLEncode accent-i

2014-06-25 Thread Trevor DeVore
On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay jac...@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)

-- 
Trevor DeVore
Blue Mango Learning Systems
www.screensteps.com-www.clarify-it.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: URLEncode accent-i

2014-06-25 Thread J. Landman Gay

On 6/25/2014, 3:29 PM, Trevor DeVore wrote:

On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay jac...@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 | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


re: URLEncode accent-i

2014-06-25 Thread Pierre Sahores
Début du message réexpédié :

 De: J. Landman Gay jac...@hyperactivesw.com
 Objet: Rép : URLEncode accent-i
 Date: 25 juin 2014 22:47:51 UTC+2
 À: How to use LiveCode use-livecode@lists.runrev.com
 Répondre à: How to use LiveCode use-livecode@lists.runrev.com
 
 On 6/25/2014, 3:29 PM, Trevor DeVore wrote:
 On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay jac...@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.

Hopefully, this will do the work as long as ...
 
 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.

… my way would’t help in this case as long as, in short, the solution consists 
to set up the client-encoding charset used by LC-Server to communicate with the 
SQL Server via an SQL request sent just after opening the SQL connection and 
before any further SQL insert/update requests.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: URLEncode accent-i

2014-06-24 Thread Richmond

On 23/06/14 23:25, J. Landman Gay wrote:

I need to send this word to the server: Santería

When urlEncoded, LiveCode produces: Santer%92a

The encoded character is a backslash instead of the accent-i. The 
server doesn't recognize that, and online URL encoders give various 
different encodings depending on what source I designate (ascii, UTF8, 
UTF16, etc.)


Where did LC get %92, and how would I correct the encoding? I'm using 
LC 6.6.1, we're not ready to make a switch yet.




With 6.6.1:

set the useUnicode to true
put numToChar(237) into fld wherever

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: URLEncode accent-i

2014-06-23 Thread Matthias Rebbe | M-R-D
Hi,

this is because you are working on Mac. You have to convert it first from Mac 
to Iso.

A URLencode(mactoiso(Santería))

should do.

Regards,

Matthias


Am 23.06.2014 um 22:25 schrieb J. Landman Gay jac...@hyperactivesw.com:

 I need to send this word to the server: Santería
 
 When urlEncoded, LiveCode produces: Santer%92a
 
 The encoded character is a backslash instead of the accent-i. The server 
 doesn't recognize that, and online URL encoders give various different 
 encodings depending on what source I designate (ascii, UTF8, UTF16, etc.)
 
 Where did LC get %92, and how would I correct the encoding? I'm using LC 
 6.6.1, we're not ready to make a switch yet.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: URLEncode accent-i

2014-06-23 Thread J. Landman Gay
Aha! Thanks Matthias. Very helpful. I will be so happy when all this 
happens automatically.


On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote:

Hi,

this is because you are working on Mac. You have to convert it first from Mac 
to Iso.

A URLencode(mactoiso(Santería))

should do.

Regards,

Matthias


Am 23.06.2014 um 22:25 schrieb J. Landman Gay jac...@hyperactivesw.com:


I need to send this word to the server: Santería

When urlEncoded, LiveCode produces: Santer%92a

The encoded character is a backslash instead of the accent-i. The server 
doesn't recognize that, and online URL encoders give various different 
encodings depending on what source I designate (ascii, UTF8, UTF16, etc.)

Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, 
we're not ready to make a switch yet.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode