Closed GoogleCodeExporter closed 9 years ago
I'm seeing that too with SimpleDB, same as Pieter reported
Typica 1.5.1
MacOSX 10.5.6
Java 1.6
Our workaround has been to use URLEncoder.encode() to escape those accented
characters in attributes.
Original comment by cet...@gmail.com
on 16 Apr 2009 at 8:56
I'm seeing the same problem with SDB as the other people -- i.e., the inability
to handle non-english characters.
What's interesting though is that when using typica 1.4.1 this problem didn't
exist. However, it's only been upon
upgrading to typica 1.5.1 that I"m seeing this problem for the first time.
Original comment by invoke.c...@gmail.com
on 20 Apr 2009 at 8:05
I'm seeing this also, with special characters (æøå) in attribute values.
Original comment by wat...@gmail.com
on 5 May 2009 at 6:33
I fixed this issue. My diff:
Index: java/com/xerox/amazonws/common/AWSConnection.java
===================================================================
--- java/com/xerox/amazonws/common/AWSConnection.java (revision 258)
+++ java/com/xerox/amazonws/common/AWSConnection.java (working copy)
@@ -223,13 +223,15 @@
String encoded = unencoded;
try {
encoded = URLEncoder.encode(unencoded, "UTF-8");
+ if ( sigVersion == 2 ) {
+ encoded = encoded.replace("+", "%20");
+ encoded = encoded.replace("*", "%2A");
+ encoded = encoded.replaceAll("%7E", "~");
+ }
} catch (UnsupportedEncodingException e) {
// should never happen
throw new RuntimeException("Could not url encode to UTF-8", e);
}
- if (sigVersion == 2) {
- encoded = URLEncoder.encode(unencoded).replace("+",
"%20").replace("*", "%2A").replace("%7E", "~");
- }
return encoded;
}
}
Original comment by sharifmarat@gmail.com
on 14 May 2009 at 11:12
This seems to be fixed in typica-1.5.2a
Original comment by onthoo
on 14 May 2009 at 1:14
I had got problems with russian letters in typica-1.5.2a with sigVersion=2
until my
fix.
Original comment by sharifmarat@gmail.com
on 14 May 2009 at 1:24
I've made this change in SVN r283. Thanks!
Original comment by dkavan...@gmail.com
on 7 Oct 2009 at 7:22
Original comment by dkavan...@gmail.com
on 7 Oct 2009 at 7:23
Original issue reported on code.google.com by
onthoo
on 13 Apr 2009 at 1:54