difference between xml in file and real XML-file

Discuss GUI programming with the RapaGUI plugin here

difference between xml in file and real XML-file

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

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

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2350
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

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

Postby malsehn » Mon Jan 15, 2018 10:18 pm

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


Return to RapaGUI

Who is online

Users browsing this forum: No registered users and 1 guest

cron