Item12610: Date Field on SERP wrong Encoding
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
The date on the SERP cannot display umlauts correctly.
Umlauts inside the content are OK.
--
OliverSchaub - 23 Oct 2013
SolrPlugin -> latest Version.
--
OliverSchaub - 23 Oct 2013
This is an error in
JQMomentContrib, not
SolrPlugin. Your site isn't able to display utf8.
JQMomentContrib - a javascript api running on the client side - is injecting utf8 while the HTML page is switched down to iso-8859-1.
Four possible ways to solve this:
- convert your site to utf8 ... bout time / long-term the RightThingToDo™
- disable I18N in JQMomentContrib ... you aren't able to render internationalized messages with all sorts of chars in it anyway.
- improve JQMomentContrib to convert internal I18N messages to the charset used by the HTML page ... you might get a few
?
when there's no existing codepoint in the target charset.
- hack
pub/System/JQMomentContrib/lang/de.js
and convert it to your site's charset ... not a solution just a quick hack.
There are other 3rd party javascript modules that suffer from the same problem, e.g. jquery-ui's datepicker.
Patches welcome.
Btw. what is SERP?
--
MichaelDaum - 23 Oct 2013
I'll check out which will be the best quickfix for us and Provide the solution here.
Thanks for your fast response.
SERP = Search Enginge Result Page
--
OliverSchaub - 24 Oct 2013
I changed the charset of the lang-file to our charset. This workes fine and is sufficinet for our case.
Thanks again.
--
OliverSchaub - 24 Oct 2013
A better fix has been found at
Item12614.
--
MichaelDaum - 25 Oct 2013