On 15 Mrz., 16:37, Uwe Klein <
u...@klein-habertwedt.de> wrote:
> Harald Oehlmann wrote:
> > Dynamic data on html pages requires a translation utf8->html entities
> > as implemented by:
> >
http://wiki.tcl.tk/HTMLcharacter entity references
>
> > Example: Ö (\u00d6) -> "Ö"
>
> > Would it possible to implement html entities as a tcl encoding, so one
> > may do:
>
> > % encoding convertto html "Österreich"
> > Österreich
>
> > Is this a helpful idea ?
>
> sounds good.
> what would the output be? plain ascii or "binary" .. ?
The result is 7-bit ASCII.
7-bit ASCII is identical to utf-8.
Thus, the result may be treated as a native utf8 string.