How to print Attributes enumeration in Java (javax naming directory Attributes)

This is only a little piece of code to print all the IDs and values of a javax.naming.directory.Attributes. If you want to know more about this interface, please see official documentation (http://docs.oracle.com/javase/7/docs/api/javax/naming/directory/Attributes.html), but here, you have a little explanation about it: This interface represents a collection of attributes. In a directory, named objects can have…

Setting UTF-8 encoding in a JSP (changing ISO-8859-1 to UTF-8 on IBM Rational Application Developer)

Today, I was integrating a custom JSP component into IBM WCM and I noticed some characters were not displaying as expected, after looking into the generated source code in Firefox I realized the used encoding was ISO-8859-1, let me explain what ISO-8859-1 means… According the W3C the ISO-8859-1 encoding: ISO-8859-1 is the default character set in…