[Seaside] Accent in generated pages
Alexandre Bergel
alexandre.bergel at me.com
Wed Jun 17 20:48:12 UTC 2015
> $ cat /tmp/test.html
> <html><head><title></title></head><body onload="onLoad()">Ñuñoa<script type="text/javascript">/*<![CDATA[*/function onLoad(){};/*]]>*/</script></body></html>
>
> $ file /tmp/test.html
> /tmp/test.html: HTML document text
Okay, but I am opening test.html within Safari, then accents are not shown.
You pointed me on these codec, but I see none related to string accent conversion.
I have seen the class WAUrlEncoder, but this is for URL.
| w |
w := WriteStream on: String new.
'Ñuñoa' do: [ :c |
WAUrlEncoder encode: c on: w ].
w contents
=> '%D1u%F1oa’
I need something like that but for html code.
I tried also
'Ñuñoa' encodeOn: WAXmlDocument new
But no, I do not get something that starts with: 'Ñu…'
Any idea?
Alexandre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150617/94072340/attachment.htm
More information about the seaside
mailing list