Not being too familiar with Java, I may be doing something redundant or unnecessary. I am getting a ResourceBundle and then looking to convert it to a Map and then using values from the map. This is what I am trying to do … Method to convert the ResourceBundle to Map: Is there a downside to getting the …
Tag: internationalization
Regex Pattern with Unicode doesn’t do case folding
In C# it appears that Grüsse and Grüße are considered equal in most circumstances as is explained by this nice webpage. I’m trying to find a similar behavior in Java – obviously not in java.lang.String. I thought I was in luck with java.regex.Pattern in combination with Pattern.UNICODE_CASE. The J…
Reliance on default encoding, what should I use and why?
FindBugs reports a bug: Reliance on default encoding Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behaviour to vary between platforms. Use an alternative API and spec…