This is a multi-part message in MIME format.

------=_NextPart_000_007B_01C4DB86.49739A30
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

Hi,=20

i have asp page that receives user input.
the input can be from ascii character set or from unicode character set =
and i have no control of which character set to revceive the input.
how can i use vbscript or an external vb class to convert from unicode =
to ascii or from ascii to unicode?

TIA, z.

------=_NextPart_000_007B_01C4DB86.49739A30
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have asp page that receives user=20
input.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the input can be from ascii character =
set or from=20
unicode character set and i have no control of which character set to =
revceive=20
the input.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>how can i use vbscript or an external =
vb class to=20
convert from unicode to ascii or from ascii to unicode?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_007B_01C4DB86.49739A30--

Re: unicode to ascii conversion by mr

mr
Mon Dec 06 22:34:20 CST 2004

hi z,

this question has been asked before.

I suggest you read carefully the results of a google search:

http://groups-beta.google.com/groups?as_q=unicode+convert&num=10&scoring=r&hl=en&ie=UTF-8&as_epq=&as_oq=iso+%C3%ADso+%C3%AFs%C3%B5+is%C3%B2&as_eq=&as_ugroup=microsoft.public.scripting.vbscript&as_usubject=&as_uauthors=&as_drrb=q&as_qdr=&as_mind=1&as_minm=1&as_miny=1981&as_maxd=6&as_maxm=12&as_maxy=2004&safe=off

there you will find all sorts of suggestions.

Beyond that, there is the basic "brute force" way, that is by treating the
string as a byte array, and using LenB, MidB, Asc, and AscW functions to
process the strings character by character.

If you want to write a little actX object, then vb has a string conversion
function.

if you are courageous (or foolhardy) enough to call api's from script, then
there is are api's which will do it also (MultiByteToWideChar and
WideCharToMultiByte)....

shalom, jw

"z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message
news:uHqmeW32EHA.1076@TK2MSFTNGP09.phx.gbl...
Hi,

i have asp page that receives user input.
the input can be from ascii character set or from unicode character set and
i have no control of which character set to revceive the input.
how can i use vbscript or an external vb class to convert from unicode to
ascii or from ascii to unicode?

TIA, z.