简体   繁体   中英

charset conversion in mule3 service

I have a Jersey service running in a Mule 3 container on Linux using jTDS drivers to connect to MS SQL Server. The database is CP1252, I want the service to return UTF-8. Is there a way to define the conversion in configuration, or do I just need to do it explicitly with Java?

Mule uses UTF-8 as its default encoding, unless specified otherwise via the mule.encoding system property at start-up.

So the Jersey service running in Mule should use the same encoding, unless the HTTP request specifies it differently with a Accept-Charset header.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM