Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

html entities as encodings

45 views
Skip to first unread message

Harald Oehlmann

unread,
Mar 15, 2012, 8:46:54 AM3/15/12
to
Dynamic data on html pages requires a translation utf8->html entities
as implemented by:
http://wiki.tcl.tk/HTML character 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 ?

-Harald

Uwe Klein

unread,
Mar 15, 2012, 11:37:08 AM3/15/12
to
sounds good.
( thought about some type of escaped encoding before )

what would the output be? plain ascii or "binary" .. ?

uwe

Harald Oehlmann

unread,
Mar 16, 2012, 3:26:06 AM3/16/12
to
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) -> "&Ouml;"
>
> > Would it possible to implement html entities as a tcl encoding, so one
> > may do:
>
> > % encoding convertto html "Österreich"
> > &Ouml;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.
0 new messages