Page 1 of 1

difference between xml in file and real XML-file

Posted: Sun Jan 14, 2018 1:57 pm
by malsehn
Hi

If i have german umlauts eg. Ö/ü in Textfields in a external XML-File all fine.

But in script , that seems a problem. (Operating System Windows)

Code: Select all

@REQUIRE "RapaGUI"
moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
   <window title="Test">
      <vgroup>
	 <button>Hello Ö/ü</button>
      </vgroup>
   </window>
</application>
]])
InstallEventHandler({RapaGUI = Function(msg)
      If msg.attribute = "Pressed" Then DebugPrint("Button pressed!")
   EndFunction})

Repeat
   WaitEvent
Forever

Re: difference between xml in file and real XML-file

Posted: Mon Jan 15, 2018 6:43 pm
by airsoftsoftwair
Starting with Hollywood 7.0 all scripts are treated as UTF-8 by default. Thus, embedding an ISO 8859-1 XML inside a UTF-8 script doesn't really work. You need to use a UTF-8 XML in your script.

Re: difference between xml in file and real XML-file

Posted: Mon Jan 15, 2018 9:18 pm
by malsehn
yeap