[Seaside] character encoding again

Jason Johnson jbjohns at libsource.com
Mon Mar 5 05:55:32 UTC 2007


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


More information about the Seaside mailing list