[JBoss JIRA] (ISPN-9430) Assume UTF-8 for incoming text content without charset during transcoding
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9430?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-9430:
------------------------------------
Description: byte[] content sent to the server for text content (text/plain, application/json, application/xml) that don't specify a charset in its media type should be assumed as UTF-8 encoding (was: byte[] content sent to the server)
> Assume UTF-8 for incoming text content without charset during transcoding
> -------------------------------------------------------------------------
>
> Key: ISPN-9430
> URL: https://issues.jboss.org/browse/ISPN-9430
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> byte[] content sent to the server for text content (text/plain, application/json, application/xml) that don't specify a charset in its media type should be assumed as UTF-8 encoding
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9430) Assume UTF-8 for incoming text content without charset
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9430?page=com.atlassian.jira.plugin.... ]
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)
7 years, 7 months
[JBoss JIRA] (ISPN-9430) Assume UTF-8 for incoming text content without charset
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9430?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-9430:
------------------------------------
Description: byte[] content sent to the server (was: {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})
> 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
>
> byte[] content sent to the server
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9430) Assume UTF-8 fot incoming text content without charset
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9430?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-9430:
------------------------------------
Summary: Assume UTF-8 fot incoming text content without charset (was: Avoid JVM dictacting charset)
> Assume UTF-8 fot 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)
7 years, 7 months
[JBoss JIRA] (ISPN-9430) Avoid JVM dictacting charset
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-9430:
--------------------------------------
Summary: Avoid JVM dictacting 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)
7 years, 7 months