difference between xml in file and real XML-file

Discuss GUI programming with the RapaGUI plugin here
Post Reply
malsehn
Posts: 17
Joined: Tue Feb 16, 2010 8:20 pm

difference between xml in file and real XML-file

Post by malsehn » Sun Jan 14, 2018 2:57 pm

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

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

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

Post by airsoftsoftwair » Mon Jan 15, 2018 7:43 pm

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.

malsehn
Posts: 17
Joined: Tue Feb 16, 2010 8:20 pm

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

Post by malsehn » Mon Jan 15, 2018 10:18 pm

yeap

Post Reply