[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Bug?  XML
Forum Index » M2M general discussion
Author Message
Trunc

Initiate

Joined: 08/05/2008 04:32:43
Messages: 5
Location: Sweden
Offline

On page http://192.168.0.26:8080/data_point_edit.shtm?dpid=11 , if one uses å, Å, ä, Ä, ö or Ö in point name and hits the save button the Point name becomes corrupt. For example “å” becomes “Ã¥”.

Some thing to do with UTF-8 or is AJAX the bad guy here?
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

Actually, the AJAX works fine. It seems to be a problem with form submission. See here:

http://www.crazysquirrel.com/computing/general/form-encoding.jspx

No mention of XmlHttpRequest behaviour, but some quick testing suggests that it works ok. A fix for form submissions has been created for the next version.

Thanks for the report.

Best regards,
Matthew Lohbihler
Trunc

Initiate

Joined: 08/05/2008 04:32:43
Messages: 5
Location: Sweden
Offline

Is there a preliminary release date for the next version?
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

Not yet, no. If you want instructions on how to implement the solution yourself i can provide them. You should have some Java development experience though.

Best regards,
Matthew Lohbihler
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

Ok, here's what you do:

Create a class that looks like below:



The class will need to be compiled and put appropriately into the WEB-INF/classes directory of the Mango instance.

Then, you'll need to edit the WEB-INF/web.xml file to add the filter. In the filter definitions section add the following. (Note that you'll need to change the "com.serotonin.web.filter." part with the package you used for your class):



Then, in the filter mappings section add this:



Restart Mango. That should do it.

This message was edited 1 time. Last update was at 26/05/2008 14:17:42


Best regards,
Matthew Lohbihler
Coldwind

Initiate

Joined: 26/05/2008 03:32:16
Messages: 7
Offline

Thanx!
 
Forum Index » M2M general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team