directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1758863 - /directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java
Date Thu, 01 Sep 2016 22:15:01 GMT
Author: seelmann
Date: Thu Sep  1 22:15:01 2016
New Revision: 1758863

URL: http://svn.apache.org/viewvc?rev=1758863&view=rev
Log:
DIRSTUDIO-1114: Bad encoding used in text editor for binary data. Use UTF-8 encoding for converting
byte[] to String.

Modified:
    directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java

Modified: directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java?rev=1758863&r1=1758862&r2=1758863&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/dialogs/HexDialog.java
Thu Sep  1 22:15:01 2016
@@ -109,7 +109,7 @@ public class HexDialog extends Dialog
                 if ( dialog.open() == TextDialog.OK )
                 {
                     String text = dialog.getText();
-                    currentData = text.getBytes();
+                    currentData = text.getBytes( StandardCharsets.UTF_8 );
                     hexText.setText( toFormattedHex( currentData ) );
                 }
             }



Mime
View raw message