[Seaside] character encoding again
Sten Kvamme
sten at kvamme.se
Mon Mar 5 06:11:06 UTC 2007
On Mar 5, 2007, at 6:55 , Jason Johnson wrote:
> Sten Kvamme wrote:
>> Hello
>> I'm new here and would like to introduce myself, skip to section
>> two for the question. I have been programming for 25 years but
>> never in Smalltalk. It was Seaside that made me sit down and give
>> it a try. However, the whole idea of programming in a running
>> system takes some time to grasp. My current programming languages
>> are Java, C and Prolog. I live in the south-west of Sweden.
>>
>> I have browsed thru the archives but couldn't find anything about
>> converting accented characters to "HTML encoding". I would like
>> the swedish Å (an A with a ring) to be converted to Å in
>> HTML source, just as & is converted to &
>>
>> This is done in the WAAbstractHtmlBuilder class method initialize
>> if I am not mistaken. If I add my own accented character there,
>> how can I get the change to take effect. (sorry for this newbie
>> kind of question).
>>
>> Code snippet:
>> #($" 'quot' $< 'lt' $& 'amp' $> 'gt' $Å 'Aring') pairsDo:
>> [:c :s | HtmlCharacters at: (c asInteger + 1) put:
>> ('&',s,';') ]
>>
>> Thanks,
>> Stenis_______________________________________________
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
> Are you running WAEncoded39 (or something like that) instead of the
> default Seaside picks (WACom I think)? If you don't then your
> letters will show up as a ?.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Yes, WAEncoded39. The character is there in the output, not a
questionmark. But I want it to be encoded to be sure it will show up
correctly in all kind of browsers. I want Å to be Å and If I
only could find out how to "cold start" Seaside in order to have the
WAAbstractHtmlBuilder class method initialize to be invoked I should
be fine. I am on very thin ice here, I don't really know how the
system works so "cold start" is probably not in your vocabulary.
More information about the Seaside
mailing list