sagarmiglani commented on code in PR #75:
URL: 
https://github.com/apache/sling-org-apache-sling-engine/pull/75#discussion_r3252626645


##########
src/main/java/org/apache/sling/engine/impl/parameters/MultipartRequestParameter.java:
##########
@@ -117,15 +123,16 @@ public String getString() {
             return this.cachedValue;
         }
 
-        return this.delegatee.getString();
+        return new String(this.get());

Review Comment:
   This now uses the JVM platform default charset. Same upload returns 
different strings on Linux UTF-8 vs Windows. 
   The old DiskFileItem.getString() used the part's Content-Type charset.
   
   
https://github.com/apache/sling-org-apache-sling-engine/pull/61/changes#diff-456ff33f6f11891702c3f5e9226e0ee6b15090fbd46a0a1ec5ea5901d40f7393L120



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to