Skip to content

Send non-breaking space (UTF8 00A0) through Json #484

Description

@scand1sk

Play Version

2.8.2

API

Scala

Operating System

Linux vion-precision 5.7.0-1-amd64 playframework/playframework#1 SMP Debian 5.7.6-1 (2020-06-24) x86_64 GNU/Linux

JDK

openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Expected Behavior

The action Ok(Json.obj("foo" -> "foo\u00a0bar")) should give the HTTP answer containing the given Json with a non-breaking space.

Actual Behavior

I do not know whether this is a bug or a feature, but the non-breaking space is converted to a standard space.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions