UTF-8 characters not recognized in form xml definition file

Description

In my form defintion xml-file I have this configuration:

...

Thsi file is saved as utf-8 file.
I'm rendering the form with this:

The result is:

Ich möchte Lob oder Dank äußern

If I save my form xml definition as ANSI, all characters are displayed correctly.

I think this is wrong. It should output the UTF-8 chars correctly, but not the ANSI chars.

Environment

None

Activity

Show:
Mitrah Soft
April 18, 2018, 10:40 AM
Edited

I've fixed the issues in UTF-8 character. In XmlParse() it will make a http call to get the .xml file content when you provide filePath to this method. So Here I've read that xml file using fileRead() with UTF-8 encoding and send the content to XmlParse() now it working fine.

Created PR for that.

https://github.com/pixl8/Preside-CMS/pull/461

Thank you.,

Dominic Watson
April 20, 2018, 10:12 AM

Amazing, thanks for picking this up

Assignee

Unassigned

Reporter

Michael Hnat

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure