Hi Folks,
I may have stumbled upon a Seaside bug.
I am able to turn the "unicode spew" bug on and off at will.
at http://menmachinesmaterials.com/WikitextParser
The middle tab "wikicode" is the culprit.
The code for it is here:
*renderWikicodeOn: html |src| wikicode isNil ifTrue:[src := '== Welcome To WikitextParserBrowser =='] ifFalse:[src := wikicode]. html break;break.
src class = WideString ifTrue:[src := 'buggy'].
html preformatted:src*
The following input will blow up the render when the WideString check is commented out: * testmDashThierryIV "scratch test"
^ ' ''''''Thierry IV'''''' or ''''''Theoderic IV'''''' ({{circa}} 720{{spaced ndash}}c. 782) was a [[Franks|Frankish]] noble. Count of [[Autun]] and [[Toulouse]]; he was thought to be a son of [[Sigebert V]], and grandson of [[Sigebert IV of Raze]]. It is now well documented that his supposed Davidic blood was a hoax (see [[Priory of Sion]]). Thierry married [[Auda of France|Auda]], daughter of [[Charles Martel]], sister of [[Pepin III]].
==Children== *[[William of Gellone]] (755 – 28 May 812/4) *Alda of Gellone (born ca. 770); married Fredalon *[[Adalhelm of Autun]]
{{Persondata | NAME = Thierry 04 | ALTERNATIVE NAMES = | SHORT DESCRIPTION = Frankish noble | DATE OF BIRTH = | PLACE OF BIRTH = | DATE OF DEATH = | PLACE OF DEATH = }} {{DEFAULTSORT:Thierry 04}} [[Category:720s births]] [[Category:780s deaths]] [[Category:Counts of Autun]] [[Category:Counts of Toulouse]] [[Category:Frankish people]]
{{France-noble-stub}}'*
If I leave that check in, then the html renders perfectly, and the Wikicode tab just displays "buggy" If I remove that check, the "unicode spew" problem happens.
I have tried several different html tags besides preformatted including text: html: code: textArea:
None of that made a difference.
The difference between the HTML and WIKICODE display is that the html passes through the XTreams Parsing and a grammar rule exists that changes the 'mdash' to a simple '-'.
The original Wikicode that is parsed does not have those characters replaced.
-- Sent from: http://forum.world.st/Seaside-General-f86180.html
Hi
I suspect that your seaside server adaptor is not set to utf-8 but rather something like iso-8859-1. If you set it to UTF-8-8 then you should be ok.
You can run something like the following to get the codec or use the Seaside Control Panel to check.
-- Sent from: http://forum.world.st/Seaside-General-f86180.html
Carlo.t
Thank you for the response.
I ran your code and got:
a GRPharoUtf8Codec name: 'utf-8'
browsing it, its a GRPharoUtf8Codec.
Good news, though....
While the WikitextBrowser may spew the "unicode spew" for some reason, the data is a valid XMLElement and the strings in there do show good unicode.
Since the data will ultimately be stored in a db by the parser, or , perhaps as a Class in the image, I am not too worried about. it.
The WikitextParserBrowser does the database lookup, parsing and display. That's a lot to ask of a browser.
If you think of something else, though, please let me know.
I am on Squeak could it be a Grease thing?
Cheers,
t
-- Sent from: http://forum.world.st/Seaside-General-f86180.html
seaside@lists.squeakfoundation.org