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

showing illegal characters

1 view
Skip to first unread message

thomasami...@yahoo.com

unread,
Jul 14, 2005, 12:56:30 AM7/14/05
to
I am building a web page to show a TCP/IP raw packet.

I need to show "special characters" on the web page I am working on.
When I say "special characters" i am talking about tabs, whitespace,
crazy unicode characters, etc etc.

What is the best way to present this to the user?

I am thinking that a large textarea is the only way to display it so it
retains all the special characters.

Is there a better idea?

VK

unread,
Jul 14, 2005, 2:31:59 AM7/14/05
to
> I need to show "special characters" on the web page I am working on.
> When I say "special characters" i am talking about tabs, whitespace,
> crazy unicode characters, etc etc.


UTF-8 is the "sorry" winner. Sorry because it has big "Korean issues"
with 00XX chars (thus atop of ACSII but the table byte is still 00,
like English pound). You just relax a bit, and you'll get Korean
letters :-)
Still surrently the only more-or-less reliable alternative for HTTP I
guess (?)

VK

unread,
Jul 14, 2005, 2:36:57 AM7/14/05
to
Damn, pressed Enter by occasion.

Any way, I would use UTF-8 for all XXXX chars, and I would try to use
char entities (like ©) for 00XX part.

Danny

unread,
Jul 12, 2005, 8:19:38 PM7/12/05
to

The simplest and possible optimal way will be using a textarea, yes, you
can do HTML entities replacing over the unicodes, to render what the
textarea will anyhow using the native browser engine and not overburdening
the HTML parsing engine with a heapload of entities. Just give it some
css to the textarea, like a style="border: 0;background:
url(PICHERE.png);font-family: verdana;padding: 1em" and such.

Danny

On Wed, 13 Jul 2005 21:56:30 -0700, <thomasami...@yahoo.com> wrote:
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

0 new messages