Sie sind nicht angemeldet.

1

Donnerstag, 22. November 2018, 14:59

special characters with textfield and included xml-file

Quellcode

1
2
3
4
<plugin name="text_pano" url="plugins/textfield.swf" 
		
		html=""
 />

Quellcode

1
2
3
4
5
<action name="show_info">
	
	copy(plugin[text_pano].html, data[exampletext.content);
	
	</action>

Quellcode

1
2
3
<data name="exampletext">
  	<p>ä ö ü ß</p>
	</data>


Hi, the above code works fine when I put the data into the main xml-file. When I put it into an extra-file by including that file in the main xml-file the special chars are shown wrong. Is there a way to get them correctly in an extra-file, too?Thanks!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Muxi« (22. November 2018, 15:09)


Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Donnerstag, 22. November 2018, 15:12

Can you try close a data content in CDATA tag?

Quellcode

1
2
3
<data name="exampletext"><![CDATA[    
    <p>ä ö ü ß</p>
]]></data>



Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Donnerstag, 22. November 2018, 15:16

thanks but that doesn't work, too...

4

Donnerstag, 22. November 2018, 15:20

ah, got it, I had to change the file to UTF-8...