"babu17" <ar****************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
hi,
i have an asp page which creates a object using server.createobject and
uses its method.
example:
set obj1= server.createobject("test.test") ' test is a dll
tmp = obj1.method() ' it returns a BSTR string.
i want to display tmp in HTML. when i tried to print tmp like
<font><%=tmp%></font>
i get some garbage value.
any idea.
thanks
A BSTR is the native string data type used by ASP scripts.
<%=tmp%>
Is a reasonable way to send the string to the client. However the string
will be converted to the current Response or Session CodePage. This
defaults to the servers system codepage.
If tmp is holding say some Cryllic characters and you attempt to write to
the client whilst the current response codepage is Western Latin then you
can expect to see garbage.
Anthony.