We're updating the issue view to help you get more done. 

Uppercase problem in XMLReader

Description

Encoding determination algorithm in XMLReader class has a 'dotless-i' problem for Turkish locale systems. In getContentTypeEncoding method;

encoding = (encoding!=null) ? encoding.toUpperCase() : null;

which results in a problem with iso-encoded feeds. Because in Turkish locale, uppercase of "i" (lowercase i) is "İ" (uppercase I with dot). Since encoding types use western encoding, the right code should be;

encoding = (encoding!=null) ? encoding.toUpperCase(Locale.US) : null;

About dotless-i problem, you may review my blog about it.

http://lotusnotus.com/lotusnotus_en.nsf/dx/dotless-i-tolowercase-and-touppercase-functions-use-responsibly.htm

Environment

Operating Systems with Turkish locale

Status

Assignee

Patrick Gotthard

Reporter

Serdar Basegmez

Affects versions

current

Priority

Minor