Class UTF8Properties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class UTF8Properties extends Properties
Properties were by default read as ISO-8859-1 characters. However, in the last 10 years most builds use UTF-8. Since this is in general a global setting, it is very awkward to use ISO-8859-1. In general, it is not often a problem since most of Java is written with the basic ASCII encoding. However, we want to do this right. So in bnd we generally use this UTF-8 Properties class. This class always writes UTF-8. However, it will try to read UTF-8 first. If this fails, it will try ISO-8859-1, and the last attempt is the platform default.

This class can (and probably should) be used anywhere a Properties class is used.

See Also: