History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2565
Type: Bug Bug
Status: Open Open
Priority: -- --
Assignee: Henry Minsky
Reporter: Christian Niessner
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Some UTF-8 Problems with XML-RPC...

Created: 28/Aug/06 08:02 AM   Updated: 10/May/07 05:14 PM
Component/s: RPC - XML-RPC
Affects Version/s: 3.3.3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File utf8-xmlrpc.js.patch (0.9 kb)
2. GZip Archive xmlrpc-test.tar.gz (2 kb)
3. Text File XMLRPC-UTF8-compiler.patch (3 kb)

Environment: Linux, LPS-3.3.3 and Flash Plugin 7.0.69

Severity: Minor
Runtime: N/A
Fix in hand: True


 Description  « Hide
Only standard-ASCII characters work as payload-data within XML-RPC requests. If there are national chars (eg an umlaut like ' ö ä ü ß'... ) this characters generate Errors.

There are also problems transferring UTF8-Chars from the 'Backend' to the 'Frontend'.

Find attached my test .lzx/.java

Steps to solve the problems:
1. The provided xmlrpc-1.2-b1.jar lib doesn't handle UTF-8 properly. An update to Version >= 2.0 is needed. Just replacing the lib worked for me...
2. The Flash Plugin uses UTF-8 encoding, but dosn't set the HTTP-Headers properly. The attached patch "utf8-xmlrpc.js.patch" to lps/components/rpc/library/xmlrpc.js fixes this issue.
3. The XMLRPCCompiler.java uses Program.push() which defaults to "Cp1252"-encoding. Seems to originate from Flash-5 times.... The attached file XMLRPC-UTF8-compiler.patch addresses this issue.

Now UTF-8 data is working for me in both directions...

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Christian Niessner - 28/Aug/06 08:02 AM
my xmlrpc-testcase....

Christian Niessner - 28/Aug/06 08:03 AM
Patch to fix charset / header issue

Christian Niessner - 28/Aug/06 08:04 AM
patch to fix compiler...

Josh Crowley - 10/May/07 05:14 PM
Henry, a contributor's agreement is in place from Christian Niessner.