<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Sounds like an encoding issue. Your code
      inserted into my app produced a euro sign where I had been
      printing a fancy leftarrow. This is a much older seaside and has a
      GRNullCodec as the codec of the requestContext. If you are using a
      different codec, then it may be thinking your utf8 euro sign is
      really 3 oddball characters and rendering them separately. Perhaps
      you can do something with the codec (like use a null?).</font><br>
    <br>
    <div class="moz-cite-prefix">On 1/1/16 11:19 AM, Hilaire wrote:<br>
    </div>
    <blockquote cite="mid:5686A71D.6010406@drgeo.eu" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix"><br>
        Thanks for the tips.<br>
        <br>
        I naively try this:<br>
        <br>
        printOn:<br>
            aStream &lt;&lt; (amount asScaledDecimal: 2) greaseString <br>
            &lt;&lt; ' ' &lt;&lt; (ByteArray with: 16rE2 with: 16r82
        with: 16rAC) asString<br>
        <br>
        <br>
        But somehow I must be missing something because it does not work
        as expected. <br>
        I got garbage currency :) 514.25 â‚¬<br>
        <br>
        Hilaire<br>
        <br>
        <br>
        Le 01/01/2016 12:54, Bob Arning a écrit :<br>
      </div>
      <blockquote cite="mid:56866905.1090908@comcast.net" type="cite">
        <meta content="text/html; charset=UTF-8"
          http-equiv="Content-Type">
        <font face="Georgia">What worked for me once upon a time was to
          convert the euro character to a series of utf-8 bytes.<br>
          <br>
          <a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.fileformat.info/info/unicode/char/20aC/index.htm">http://www.fileformat.info/info/unicode/char/20aC/index.htm</a><br>
          <br>
        </font>so, for
        <meta charset="utf-8">
        <span style="color: rgb(51, 51, 51); font-family: 'Open Sans',
          'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:
          14px; font-style: normal; font-variant: normal; font-weight:
          normal; letter-spacing: normal; line-height: 20px; orphans:
          auto; text-align: left; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(249, 249, 249);">euro-currency

          sign<span class="Apple-converted-space"> </span></span><a
          moz-do-not-send="true"
          href="http://www.fileformat.info/info/unicode/char/20a0/index.htm"
          style="color: rgb(0, 136, 204); text-decoration: none;
          font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial,
          sans-serif; font-size: 14px; font-style: normal; font-variant:
          normal; font-weight: normal; letter-spacing: normal;
          line-height: 20px; orphans: auto; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;">U+20A0</a>
        you would need a 3-byte string whose characters in hex were:
        <meta charset="utf-8">
        <span style="color: rgb(51, 51, 51); font-family: 'Open Sans',
          'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:
          14px; font-style: normal; font-variant: normal; font-weight:
          normal; letter-spacing: normal; line-height: 20px; orphans:
          auto; text-align: left; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(249, 249, 249);">0xE2 0x82
          0xAC</span>
        <div class="moz-cite-prefix"><br>
          In squeak, I used this<br>
          <br>
          utf8ForCodePoint: cp<br>
          <br>
          "===<br>
          SEUtils utf8ForCodePoint: 16r2190 <br>
              <br>
          16r2190 radix: 2 '10000110010000'<br>
          <br>
          16    U+FFFF    1110xxxx    10xxxxxx    10xxxxxx<br>
          ==="<br>
          <br>
              | bits answer |<br>
              <br>
              bits := (cp radix: 2) padded: #left to: 16 with: $0.<br>
              answer := String new.<br>
              {<br>
                  '2r1110',(bits copyFrom: 1 to: 4).<br>
                  '2r10',(bits copyFrom: 5 to: 10).<br>
                  '2r10',(bits copyFrom: 11 to: 16).<br>
              } do: [ :radix2 |<br>
                  answer := answer, (String with: (Character value:
          radix2 asNumber)).<br>
              ].<br>
          <br>
              ^answer<br>
          <br>
          On 1/1/16 5:09 AM, Hilaire wrote:<br>
        </div>
        <blockquote cite="mid:n65j9i$686$1@ger.gmane.org" type="cite">
          <pre wrap="">Le 31/12/2015 15:42, Sven Van Caekenberghe a écrit :
</pre>
          <blockquote type="cite">
            <pre wrap="">A possible solution is to somehow start with a WideString from the beginning (or force it before doing all elements one by one).
</pre>
          </blockquote>
          <pre wrap="">In the hack you are suggesting, does it not required the whole contents
of the rendered page html code to be put as WideString?
Indeed, hacking only my object #printOn: method to send WideString to
the stream does not help.

Hilaire

</pre>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
seaside mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://google.com/+DrgeoEu">http://google.com/+DrgeoEu</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>