Categories | Question details Back To List | ||
Tree - Data Processor Hello, i am using the tree component with data processor in version v20. I want to implement, that the user is being able to edit nodes. So i coded: .... tree.enableItemEditor(true); .... dataProcessor = new dataProcessor("update.do"); dataProcessor.enableUTFencoding(true); .... If the user changes the nodetext using german umlauts like 'Gehäuse', i will get in the Update handler the following values for tr_text: ä ->A* ö->APar. ü->A1/4 Ä->A# Ö->A# Ü->A# ß->A# What's going wrong here? I am not able to distignuish between Ä,Ü,Ö and ß :-(. Best regards, Stefan Riedel-Seifert Answer posted by Support on Jan 21, 2009 03:57 Which encoding you are using for the page and server side script? The enableUTFencoding command force usage of encodeURIComponent for data transfer ( so umlauts replaced with correct multi-byte utf sequences ) and if your server side code process data as iso-8859-1 encoded - it may cause such problem. You can try to change code to dataProcessor.enableUTFencoding(false); in such case client side data will be encoded by "escape" which preserve current encoding ( if you are using iso-8859-1 as page encoding - umlauts will be sent to server side as is ) Answer posted by Stefan Riedel-Seifert on Jan 21, 2009 04:36 Hello,
for first, thank you for your quick response. My environmant is a SAP Netwaver 7.01 Server with Abap runtime. There is no specific page encoding available, but thes olution is as you mentionied. I must explizit set:
leave them away is not sufficient enough!
Remark for the other readers: in the original question above i mentioned the german umlauts like ä,ü,ö,Ä,Ü,Ö :-).
Thank you very much, Stefan Riedel-Seifert Answer posted by Support on Jan 21, 2009 05:38 Please try one more approach Use dataprocessor with dataProcessor.enableUTFencoding(true); and version of dhtmlxcommon.js from next post http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=5764&ssr=yes&s=dhtmlxcommon%20utf instead of original one, it will add special headers to the sent data, to inform server side code about used encoding. Answer posted by Stefan Riedel-Seifert on Jan 23, 2009 06:52 Hello Support, i've tried your last hint, but it's no solution in my case. It behave now as in the beginning :-). But the new coomon.js works also fine. Best regards, Stefan Riedel-Seifert Answer posted by Support on Jan 23, 2009 09:11 Is the same data submitted through normal <form> works with your server side code? Answer posted by Stefan RIedel-Seifert on Jan 25, 2009 22:52 Yes, that works fine :-) |