Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 37306

Summary: WebDAV component can't accept server document encoding
Product: [Eclipse Project] Platform Reporter: Dmitry B. Khlonin <dpakoha>
Component: WebDAVAssignee: Platform-WebDAV-Inbox <platform-webdav-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 Keywords: helpwanted
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dmitry B. Khlonin CLA 2003-05-06 19:13:58 EDT
I setup Apache 2.0 + DAV module and using it for editing jsp files.
In httpd.conf I set
AddType text/plain;charset=koi8-r .jsp
But on Windows client computer encoding for Russian text is cp-1251.
Then - Eclipse DAV component don't recode koi8-r document to cp-1251 but
encoding set for it. This is example for DAV traffic taken by tcpdump.

0x00e0   3430 220d 0a41 6363 6570 742d 5261 6e67        40"..Accept-Rang
0x00f0   6573 3a20 6279 7465 730d 0a43 6f6e 7465        es:.bytes..Conte
0x0100   6e74 2d4c 656e 6774 683a 2037 3038 0d0a        nt-Length:.708..
0x0110   436f 6e74 656e 742d 5479 7065 3a20 7465        Content-Type:.te
0x0120   7874 2f70 6c61 696e 3b20 6368 6172 7365        xt/plain;.charse
0x0130   743d 6b6f 6938 2d72 0d0a 0d0a 3c25 4020        t=koi8-r....<%@.
0x0140   7061 6765 2063 6f6e 7465 6e74 5479 7065        page.contentType
0x0150   3d22 7465 7874 2f68 746d 6c3b 2063 6861        ="text/html;.cha
0x0160   7273 6574 3d6b 6f69 382d 7222 0a25 3e3c        rset=koi8-r".%><
0x0170   2521 2053 7472 696e 6720 7469 746c 653d        %!.String.title=
0x0180   2244 6973 636c 6169 6d65 7222 3b20 253e        "Disclaimer";.%>
0x0190   3c25 2120 5374 7269 6e67 2063 7373 3b20        <%!.String.css;.
0x01a0   253e 3c25 4020 696e 636c 7564 6520 6669        %><%@.include.fi
0x01b0   6c65 3d22 2f68 6561 6465 722e 6a73 7022        le="/header.jsp"
0x01c0   2025 3e0a 3c68 333e 4469 7363 6c61 696d        .%>.<h3>Disclaim
0x01d0   6572 2028 efd4 cdc1 dacb c129 3c2f 6833        er.(.......)</h3
Comment 1 DJ Houghton CLA 2007-06-20 13:52:53 EDT
This component is no longer being actively developed. We encourage users to investigate the capabilities of the Eclipse Web Tools Project.