Hi.

I am having a really weird behavior with a component in an ASP page.

In a simple ASP file, I instantiate the component, call a method that
returns a wide character string (Chinese, Japanese double byte characters),
and display the result in the page with <%= result %>. It displays the
foreign characters fine with codepage set to 9xx. If I set the codepage to
1252, the characters becomes a bunch of ?'s.
So, this works as long as I set the correct codepage.

However, in another page, I instantiate the same component and do the same
thing. However, most of the return string is replaced with a bunch of
spaces. In this page, I set the codepage a few times (1252, 9xx) before I
use the component. The codepage is set correctly before I use the
component. When I do use the component and try to display the returned
result, just like in the simple, working ASP page, the wide characters are
gone and there are spaces.

It looks like as if the 1st byte of each wide characters are ignored. I am
not sure, when it works in the simpler, ASP page.

What am I missing?

Thanks.