Skip to content

Inconsistent encoding/decoding of Utf8 text #220

@kalhauge

Description

@kalhauge

Thank you for maintaining this fantastic library,

I have found an inconsistency when encoding and decoding
"\55296".

> import Data.Text.Encoding
> :set -XOverloadedStrings
> decodeUtf8 (encodeUtf8 "\55296")
"\65533"

The bug seems to be system independent and happening in at least version 1.2.2.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionRequires more investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions