Issue Details (XML | Word | Printable)

Key: CSOAP-29
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Bob Swift
Reporter: Julius Adorf
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Command Line Interface

String-to-byte conversion / character encoding - German umlauts are not supported

Created: 18/Jul/08 03:31 AM   Updated: 22/Jul/08 06:21 AM
Component/s: None
Affects Version/s: 1.3.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Java Source File ConfluenceClient.java (115 kB)
2. File ConfluenceClient.java.svn-diff (7 kB)
3. File ConfluenceClient.java.unix-diff (3 kB)

Environment: Linux

Labels:


 Description  « Hide
The method used for converting strings to bytes is inappropriate and does - for example - not support German umlauts. The attachment contains a patch which provides relief to this issue (diff against revision 21182). Please let me know if you need any further information regarding this issue.

 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Bob Swift added a comment - 18/Jul/08 08:09 AM - edited
Thanks! I will get this in next distribution. If you can attach a simple test that can be run, that would be nice

Julius Adorf added a comment - 22/Jul/08 06:21 AM
There is a hard-coded string literal in line 847:

[...]
String encoding = "ISO-8859-1";
[...]

You may want to change this encoding to UTF-8 instead of ISO-8859-1 ("Western Europe").

A good solution would be to make the character encoding configurable, such that other
users are able to solve similar problems.