Hi all,

we solved it by replacing the last line with:
  ...
  ## put boo into fld 1
  put textdecode(theAddress,"utf-8") into fld 1
end mouseup

:-)

> Am 15.04.2017 um 19:23 schrieb Matthias Rebbe via use-livecode 
> <[email protected]>:
> 
> I´ve entered the following text
> 
> Route Forestière de la Réserve, 50680 Cerisy-la-Forêt, France 
> into Ultraedit and set the encoding to UTF-8 i get this here
> Route Forestière de la Réserve, 50680 Cerisy-la-Forêt, France
> , which is the correct spelling then.
> It seems your text is in MacRoman and needs to be converter to UTF-8 to get 
> it displayed correctly.
> But don´t ask me how.., i´ve always problems when it comes to encoding. ;)
> 
> Matthias Rebbe
>> Am 15.04.2017 um 18:52 schrieb John Dixon via use-livecode 
>> <[email protected] <mailto:[email protected]>>:
>> ...
>> on mouseUp
>> put 
>> "http://maps.googleapis.com/maps/api/geocode/json?latlng=<coord>&sensor=true 
>> <http://maps.googleapis.com/maps/api/geocode/json?latlng=%3Ccoord%3E&sensor=true>"
>>  into theURL
>> replace "<coord>" with fld "coord" in theURL
>> put URL theURL into temp
>> put lineOffset("formatted_address",temp) into red
>> set itemdel to ":"
>> put item 2 of line red of temp into theAddress
>> replace quote with empty in theAddress
>> delete char 1 of theAddress
>> put boo into fld 1
>> end mouseUp

Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to