Fix ALFCOM-3049: JCR TypeConversionException: Cannot convert non UTF-8 streams to String

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-06-25 14:02:43 +00:00
parent 47a00104a0
commit 8c8eb1d047

View File

@@ -806,7 +806,7 @@ public class DefaultTypeConverter
public String convert(ContentReader source)
{
String encoding = source.getEncoding();
if (encoding == null || !encoding.equals("UTF-8"))
if (encoding == null || !encoding.equalsIgnoreCase("UTF-8"))
{
throw new TypeConversionException("Cannot convert non UTF-8 streams to String.");
}