[RSS]

Why do my images fail when the url has mbyte characters in it?

Due to a bug in the JSF RI: https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=463, the image component does not work properly if the url property has characters that are not in ISO-8859-1 which is an 8-bit encoding.

To workaround this issue you could do one of the following:

1. Change the app so that it only uses URLs with ISO-8859-1 chars.

One way to do this is to convert any valid Java String, which is UTF-16 encoded, into a new ISO-8859-1 String and use that as the url property. See http://www.exampledepot.com/egs/java.nio.charset/ConvertChar.html?l=rel for details.

2. Change the application by writing to a fixed file name.

An example of this is done in the Using the File Upload component tutorial.