You are here: Foswiki>Tasks Web>Item12610 (25 Oct 2013, MichaelDaum)Edit Attach

Item12610: Date Field on SERP wrong Encoding

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: JQMomentContrib
Branches:
Reported By: OliverSchaub
Waiting For:
Last Change By: MichaelDaum
The date on the SERP cannot display umlauts correctly. Umlauts inside the content are OK.

search encoding mixup.jpg

-- 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:

  1. convert your site to utf8 ... bout time / long-term the RightThingToDo™
  2. disable I18N in JQMomentContrib ... you aren't able to render internationalized messages with all sorts of chars in it anyway.
  3. 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.
  4. 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 wink

-- 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
 

ItemTemplate edit

Summary Date Field on SERP wrong Encoding
ReportedBy OliverSchaub
Codebase 1.1.5
SVN Range
AppliesTo Extension
Component JQMomentContrib
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
search_encoding_mixup.jpgjpg search_encoding_mixup.jpg manage 12 K 23 Oct 2013 - 06:05 OliverSchaub  
Topic revision: r4 - 25 Oct 2013, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy