encoding woes!?

hh hh at hyperhh.de
Tue Oct 29 18:01:37 EDT 2019


>> Also LiveCode uses a BOM. If there is no UTF-8 BOM it uses 
>> Mac OS Roman. That is what you see when you type into msg 
>> put textEncode(the htmltext of widget "Browser", "UTF-8"). 
> 
> Which shows exactly the same (with umlauts and stuff) as simply:
> put the htmltext of widget "Browser" 

I don't mean the htmltext of the widget that has the file as url.

Set the htmltext of the widget by script to

<html><head><meta charset="utf-8"></head><body><p>
äöüß
</p></body></html>

Then do
put textencode(the htmltext of widget browser,"UTF-8")

I get then here the MacOS Roman encoding:

<html><head><meta charset="utf-8"></head><body><p>
üā
</p></body></html>

That describes (somehow) the problem you had and others will have.



More information about the use-livecode mailing list