<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Unicode/UTF8/encodedReplacementCharacter",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7UnicodeO4UTF8O27encodedReplacementCharacters06_ValidB6BufferVvpZ"
  },
  "title" : "encodedReplacementCharacter"
}
-->

# encodedReplacementCharacter

A unicode scalar value to be used when repairing
encoding/decoding errors, as represented in this encoding.

```
static var encodedReplacementCharacter: Unicode.UTF8.EncodedScalar { get }
```

## Discussion

If the Unicode replacement character U+FFFD is representable in this
encoding, `encodedReplacementCharacter` encodes that scalar value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)