No-asci chars from the on-rev CGI
Richmond Mathewson
richmondmathewson at gmail.com
Mon May 3 12:16:16 EDT 2010
Probably time to start using Unicode:
set the useUnicode to true
put uniencode("щати") into RUS
set the unicodeText of fld "PLACEWHERE" to RUS
or encode each of those Cyrillic letters via their Unicode call numbers:
set the unicodeText of fld "PLACEWHERE" to (numToChar(XXXXX) &
numToChar(ZZZZZ) and so on
where 'XXXXX' and 'ZZZZZ' are the DECIMAL Unicode call numbers of your
characters.
On 03/05/2010 18:54, paolo mazza wrote:
> I am still fighting with the NO-ASCI chars. Even if I encodeBase64 the
> data, if I connect to the CGI from a web-plugin using Windows platform , I
> get stange chars.
>
> > From exactly the same CGI, and using the same revlet, from MAC i get the
> correct chars with accent (i.e. è à ù ) and from windows i get some strange
> chars (i.e. ^ати) .
>
> Any clue for a solution?
>
>
>
> On Thu, Apr 15, 2010 at 3:51 PM, Richard Gaskin
> <ambassador at fourthworld.com>wrote:
>
>> paolo mazza wrote:
>>
>> I am facing a problem sending NO-ASCI chars with the rev CGI ( i. e. put
>>> "щати" ) to a Rev application.
>>>
>>> When I receive a string containing chars with accent (i.e. щати) from the
>>>
>>> Revolution CGI , I get strange chars.
>>>
>>> Example:
>>>
>>> put "щати"
>>>
>>>
>>> I receive: "^:'"
>>>
>>> How can I fix this?
>>>
>> Try running the data through base64Encode when sending, and base64Decode on
>> the receiving end.
>>
More information about the use-livecode
mailing list