[jira] Assigned: (DIRSERVER-1009) ASN.1 decoder does not use UTF-8
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Assigned: (DIRSERVER-1009) ASN.1 decoder does not use UTF-8




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Assigned: (DIRSERVER-1009) ASN.1 decoder does not use UTF-8  
Emmanuel Lecharny (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:11 AM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Emmanuel Lecharny reassigned DIRSERVER-1009:
--------------------------------------------

Assignee: Emmanuel Lecharny

> ASN.1 decoder does not use UTF-8 encoding for strings
> -----------------------------------------------------
>
>                 Key: DIRSERVER-1009
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1009
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: asn1
>    Affects Versions: 1.5.0
>         Environment: JDK 1.6, WinXP
>            Reporter: Klemen Zagar
>            Assignee: Emmanuel Lecharny
>
> Currently, LDAP ASN.1 decoder transforms byte[] to String via calls su
ch as:
>   String any = new String( tlv.getValue().getData() );
>   (source: /ldap/src/main/java/org/apache/directory/shared/ldap/codec/acti
ons/StoreAnyAction.java, line 74)
> This uses some default encoding, though according to LDAP RFC, UTF-8 should always be
 used (http://www.rfc-editor.org/rfc/rfc2251.txt, section 4.1.2).
> I recommend that the following code be used for converting byte[] to S
tring:
>   // static variable containing the UTF8 encoder
>   private static final Charset UTF8 = Charset.forName("UTF8");
>   // wherever byte[]->string conversion is needed
>   String any = UTF8.decode(tlv.getValue().getData()).toString();
> From user's perspective, the problem is that non-ASCII characters in search filter
s are messed up, and search doesn't return any results.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:12 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register