[infinispan-issues] [JBoss JIRA] (ISPN-9430) Assume UTF-8 for incoming text content without charset

Gustavo Fernandes (JIRA) issues at jboss.org
Wed Aug 15 10:32:00 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-9430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gustavo Fernandes updated ISPN-9430:
------------------------------------
    Summary: Assume UTF-8 for incoming text content without charset  (was: Assume UTF-8 fot incoming text content without charset)


> Assume UTF-8 for incoming text content without charset
> ------------------------------------------------------
>
>                 Key: ISPN-9430
>                 URL: https://issues.jboss.org/browse/ISPN-9430
>             Project: Infinispan
>          Issue Type: Bug
>            Reporter: Galder Zamarreño
>            Assignee: Gustavo Fernandes
>
> {code}
> Galder: I wanted to ask you about "application/json; charset=utf-8"
> Galder: You'd send id=2 and one parameter charset=utf-8 as string?
> Galder: id=2 with pre-defined media type I mean...
> Galder: Is that right?
> Gustavo: one sec (tel)
> Gustavo: hi
> Gustavo: If I'm not wrong, UTF-8 is the default
> Gustavo: so you'd send id=2
> Gustavo: let me check
> Galder: Ok, let me know
> Gustavo: oh crap
> Gustavo: it ends up reading as Charset.defaultCharset().name()
> Gustavo: it works only because I think UTF-8 is default everywhere
> Gustavo: so the JVM uses the property "file.encoding", and it it's absent, it uses UTF-8
> Galder: ok, should be forced to UTF-8
> Gustavo: yes, I should not let it propagate to the JVM :)
> Gustavo: could you open a JIRA and assign to me?
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list