accents, graves & other funny charecters...

Klaus major-k klaus at major-k.de
Sat Apr 15 13:36:34 EDT 2017


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 <use-livecode at lists.runrev.com>:
> 
> 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 <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
>> ...
>> 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
klaus at major-k.de





More information about the use-livecode mailing list