Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

Autodecode Should Not Throw

Version 1
Created 2015-04-06
StatusDraft
Last modified --
Author Andrei Alexandrescu and Walter Bright

Abstract

When the autodecoder encounters invalid UTF, it throws an exception. This proposal changes that so it replaces the invalid UTF with the Replacement Character.

Benefits

Breaking Existing Code

This can break existing code, although it seems highly unlikely that any programs actually require the decoding to throw on invalid UTF.

Deprecation Path

There doesn’t seem to be any deprecation path for this change. It will have to be abrupt.

NG Announcement

This document has been placed in the Public Domain.