This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7200 - The Checker says an empty stream is not a valid UTF-8 stream.
Summary: The Checker says an empty stream is not a valid UTF-8 stream.
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 trivial
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 10:38 UTC by fd
Modified: 2009-08-03 15:42 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-08-03 10:38:58 UTC
TextContent.validateUTF8 concludes that an empty stream is not correctly encoded in UTF8. The Checker then reports some CHARACTER_ENCODING_SUPPORT failure saying the response is not correctly encoded in UTF8.

That's not truly correct. Since an empty stream does not contain any character, it also cannot contain any UTF8 validation error.
Comment 1 fd 2009-08-03 15:42:48 UTC
TextContent now says a null or empty content is correctly encoded in UTF-8.