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 7:20 pm

difference between xml in file and real XML-file

Post 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
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
malsehn
Posts: 17
Joined: Tue Feb 16, 2010 7:20 pm

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

Post by malsehn »

yeap
Post Reply