When I try to add an offer in the Broadleaf Admin, euro signs (€) in the name or description are converted into â¬
after saving.
The strange thing about this is that this behaviour does not occur when saving a code for this offer. For example:
- I create a promo called "€5 promo"
- After saving I'll get:
â¬5 promo
(bad) - I add a code to this promo called "€5 code"
- After saving it will look like this:
€5 code
(good)
I thing it has something to do with the saving, because when I modify the field in the database, it displays correctly. When I try to edit it and save the strange symbols take over again...
EDIT 1
JerryOz was very close to the solution. The only thing I needed to add (next to his solution) was the code below to my web.xml:
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>