Change encoding in AMQ Classic 6.1.8 REST Connection
- Dominant language
- Java
- Stars
- 2.5k
- Forks
- 1.5k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 79
Description
Hi,
I am using ActiveMQ Classic in version 6.1.8 and connect via. REST API to the AMQ Broker. When retrieving messages from a queue, the message is encoded using ISO-8859-1 (Latin).
Is there a way to change this? I've already tried patching the jetty.xml file, but that didn't work. Right now, I'm having an issue where, for example, Cyrillic messages are being transmitted as ???? due to the incorrect encoding.
Even a request with the Accept header set to `Accept: application/xml;charset=UTF-8` does not work. The response is always
`Content-Type: text/plain;charset=iso-8859-1`
Thanks and kind regards,
trxg19
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing queue retrieval through the REST API with Cyrillic content and inspect the response Content-Type and charset. Review jetty.xml and the REST response path, including handling of the Accept header; done means messages retain Cyrillic characters and the response is served with UTF-8 rather than ISO-8859-1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100