Problems with non-ascii characters in app-config.xml

2 views
Skip to first unread message

tobe

unread,
Jul 5, 2006, 3:26:24 AM7/5/06
to jmatter
I have problems with non-ascii characters in app-config.xml.

It seems that jMatter assumes that app-config.xml is UTF-8 encoded and
proceeds to ignore the encoding-attribute of the xml specification...

eitan

unread,
Jul 6, 2006, 12:28:30 PM7/6/06
to jmatter
can you supply a simple test for me to fix this?

i just tried something simple, like using an a-umlaut in the
application name
in app-config.xml, like this:

<?xml version="1.0" encoding="UTF-8"?>
<application name="Symposium Man&#x00e4;ger">

<view-mechanism>com.u2d.view.swing.SwingViewMechanism</view-mechanism>
<look-and-feel>Metal</look-and-feel>
<page-size>15</page-size>
...

i then started up the application and verified that the jframe's title
correctly displayed the specified unicode character, which works.

thanks, / eitan

tobe

unread,
Jul 7, 2006, 2:38:43 AM7/7/06
to jmatter
Sure, I can see why yours works because you use the &#x; escape, but
that is not the usual way to represent them.

<?xml version="1.0" encoding="ISO-8859-1"?>
<application name="Behörighetsadministration">
...

But you need to use jEdit or some such, change BufferOptions to
encoding ISO-8859-1 and save it.

When I save it as UTF-8 it works, the gripe was that the encoding
attribute seems to be ignored.

Eitan Suez

unread,
Jul 7, 2006, 8:13:15 AM7/7/06
to jma...@googlegroups.com
ok, thanks for the information.  i should have a fix in early next
week.  probably a careless use of a Reader instead of a
FileInputStream..

Reply all
Reply to author
Forward
0 new messages