I have an enum where values are presented in utf8 format. Because of this i have some encoding problems in my jsp view. Is there a way to get values from my messages.properties
file. What if i have following lines in my properties file:
shop.first=Первый
shop.second=Второй
shop.third=Третий
How can i inject them in enum?
public enum ShopType {
FIRST("Первый"), SECOND("Второй"), THIRD("Третий");
private String label;
ShopType(String label) {
this.label = label;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
}