Hi,

I have a textarea which the user can enter whatever text he chooses.

<TEXTAREA id=body name=body></TEXTAREA>

I would like to avoid supporting HTML tags in this textarea at the
moment, therefore I use the following HTML encode support:

Dim p_Body : p_Body = Server.HTMLEncode(Request.Form("Body"))

This works fine if I write text in latin characters (in English) - than
only the HTML tags are encoded.
But if I write text in other UTF-8 chars (e.g.: Hebrew) - all the text
is encoded, and it becomes unreadable.

What Am I doing wrong?

Thanks,
Gabi

Re: HTMLEncode works only in English chars, but not in other UTF-8 languages by Steve

Steve
Mon Sep 18 14:33:28 CDT 2006

hi Daniella,

which IIS version do you have installed ?


Re: HTMLEncode works only in English chars, but not in other UTF-8 languages by Steve

Steve
Mon Sep 18 14:35:54 CDT 2006

Steve wrote:
> hi Daniella,

Wooprs sorry Gab,
seems like i gotta a crush on a Daniella


Re: HTMLEncode works only in English chars, but not in other UTF-8 languages by Gabriella

Gabriella
Thu Sep 21 00:13:57 CDT 2006

Hi Steve,
I have IIS version 6.0 installed.

BTW, my daugther's name is Daniela - so you weren't far away...

Gabi.

Steve wrote:
> Steve wrote:
> > hi Daniella,
>
> Wooprs sorry Gab,
> seems like i gotta a crush on a Daniella