| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 22/05/2008 05:12:55
|
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?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 22/05/2008 11:17:20
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
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 |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 23/05/2008 07:55:04
|
Trunc
Initiate
Joined: 08/05/2008 04:32:43
Messages: 5
Location: Sweden
Offline
|
Is there a preliminary release date for the next version?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 23/05/2008 09:00:30
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
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 |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/05/2008 14:16:57
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
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 |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 27/05/2008 09:53:59
|
Coldwind
Initiate
Joined: 26/05/2008 03:32:16
Messages: 7
Offline
|
Thanx!
|
|
|
 |
|
|