You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (Commented) (JIRA)" <ji...@apache.org> on 2012/04/05 23:34:25 UTC

[jira] [Commented] (DIRSTUDIO-802) confusion between ISO-8859-1 and UTF-8 in the encode/decode LDAP gui tool

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247706#comment-13247706 ] 

Emmanuel Lecharny commented on DIRSTUDIO-802:
---------------------------------------------

> The encode/decode tool (from the LDAP menu) gives "aGVydsOp" for BASE-64 encoding from the ISO-8859-1 string "hervé".

Which is expected. "hervé" when encoded using UTF-8 should be converted to aGVydsOp when base 64 encoded.

Every String in LDAP is supposed to be UTF-8.

The base 64 encoding for "hervé" encoded in ISO-8859-1 would be aGVyduk=

> while the website http://www.base64decode.org/  

Can't access it.

Give www.motobit.com/util/base64-decoder-encoder.asp a try.

>  gives the same results from the same string but in UTF-8.
> Also UTF-8 BASE 64 encoding of Apache Directory Studio match with ISO-8859-1 BASE64 encoding of the previous website.

No, not if the web site I provided, AFAICT

> The result from my own java code match with that website.
Can you provide your code ?
        

                
> confusion between ISO-8859-1 and UTF-8 in the encode/decode LDAP gui tool
> -------------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-802
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-802
>             Project: Directory Studio
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>         Environment: Windows XP pro
>            Reporter: julien2512
>            Priority: Minor
>              Labels: decode, encode, iso-8859-1, utf8
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The encode/decode tool (from the LDAP menu) gives "aGVydsOp" for BASE-64 encoding from the ISO-8859-1 string "hervé".
> while the website http://www.base64decode.org/   gives the same results from the same string but in UTF-8.
> Also UTF-8 BASE 64 encoding of Apache Directory Studio match with ISO-8859-1 BASE64 encoding of the previous website.
> The result from my own java code match with that website.
> I think there is a confusion between ISO-8859-1 and UTF-8 in the encode/decode LDAP gui tool of Apache Directory Studio.
> It will be easy to fix.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira