<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Sven! You fixed my problem already!<div class=""><br class=""></div><div class="">Cheers,</div><div class="">Alexandre<br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">--&nbsp;<br class="">_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:<br class="">Alexandre Bergel &nbsp;<a href="http://www.bergel.eu" class="">http://www.bergel.eu</a><br class="">^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.<br class=""><br class=""><br class=""></span>

</div>
<br class=""><div style=""><blockquote type="cite" class=""><div class="">On Jun 17, 2015, at 6:52 PM, Sven Van Caekenberghe &lt;<a href="mailto:sven@stfx.eu" class="">sven@stfx.eu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">On 17 Jun 2015, at 23:29, Alexandre Bergel &lt;<a href="mailto:alexandre.bergel@me.com" class="">alexandre.bergel@me.com</a>&gt; wrote:<br class=""><br class="">Ah okay!<br class=""><br class="">Last quick question (I hope :-)<br class=""><br class="">How to automatically add this "&lt;?xml version="1.0" encoding="UTF-8”?&gt;” in front of the generated file? Should I use a new WAHtmlRoot? Or an WAHtmlAttributes? Or plugging somewhere an WAEncoder?<br class=""></blockquote><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I am sorry, like I said: 'I just don't know why it does not work in Seaside, normally special characters should just work, no need to do anything special.'</span><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Maybe someone else can answer ...</span><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Thanks Sven, this is really helpful!<br class=""><br class="">Cheers,<br class="">Alexandre<br class="">--<span class="Apple-converted-space">&nbsp;</span><br class="">_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:<br class="">Alexandre Bergel &nbsp;<a href="http://www.bergel.eu" class="">http://www.bergel.eu</a><br class="">^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jun 17, 2015, at 5:59 PM, Sven Van Caekenberghe &lt;<a href="mailto:sven@stfx.eu" class="">sven@stfx.eu</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class=""><br class="">On 17 Jun 2015, at 22:48, Alexandre Bergel &lt;<a href="mailto:alexandre.bergel@me.com" class="">alexandre.bergel@me.com</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class="">$ cat /tmp/test.html<span class="Apple-converted-space">&nbsp;</span><br class="">&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body onload="onLoad()"&gt;Ñuñoa&lt;script type="text/javascript"&gt;/*&lt;![CDATA[*/function onLoad(){};/*]]&gt;*/&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;<br class=""><br class="">$ file /tmp/test.html<span class="Apple-converted-space">&nbsp;</span><br class="">/tmp/test.html: HTML document text<br class=""></blockquote><br class="">Okay, but I am opening test.html within Safari, then accents are not shown.<br class="">You pointed me on these codec, but I see none related to string accent conversion.<br class=""><br class="">I have seen the class WAUrlEncoder, but this is for URL.<span class="Apple-converted-space">&nbsp;</span><br class="">| w |<br class="">w := WriteStream on: String new.<br class="">'Ñuñoa' do: [ :c |<br class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>WAUrlEncoder encode: &nbsp;c on: w ].<br class="">w contents<br class=""><br class="">=&gt; &nbsp;'%D1u%F1oa’<br class=""><br class="">I need something like that but for html code.<br class=""><br class="">I tried also<br class="">'Ñuñoa' &nbsp;encodeOn: &nbsp;&nbsp;WAXmlDocument new<br class="">But no, I do not get something that starts with: '&amp;Ntilde;u…'<br class=""><br class="">Any idea?<br class=""></blockquote><br class="">Yes, I just don't know why it does not work in Seaside, normally special characters should just work, no need to do anything special.<br class=""><br class="">What needs to be added is<span class="Apple-converted-space">&nbsp;</span><br class=""><br class="">&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br class=""><br class="">in front of the .html, like:<br class=""><br class="">$ cat /tmp/test.html<span class="Apple-converted-space">&nbsp;</span><br class="">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body onload="onLoad()"&gt;Ñuñoa&lt;script type="text/javascript"&gt;/*&lt;![CDATA[*/function onLoad(){};/*]]&gt;*/&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;<br class=""><br class="">When opening an HTML file locally, there is no mime-type added by the server, hence the browser does not know the encoding.<br class=""><br class="">Here is another live example (independent of Seaside):<br class=""><br class=""><a href="http://zn.stfx.eu/unicode" class="">http://zn.stfx.eu/unicode</a><br class=""><br class=""><blockquote type="cite" class="">Alexandre<br class="">_______________________________________________<br class="">seaside mailing list<br class="">seaside@lists.squeakfoundation.org<br class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br class=""></blockquote><br class="">_______________________________________________<br class="">seaside mailing list<br class="">seaside@lists.squeakfoundation.org<br class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br class=""></blockquote><br class="">_______________________________________________<br class="">seaside mailing list<br class=""><a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a><br class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br class=""></blockquote><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">seaside mailing list</span><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:seaside@lists.squeakfoundation.org" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">seaside@lists.squeakfoundation.org</a><br style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div></blockquote></div><br class=""></div></body></html>