Wide Character String
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. When I do use the component and try to display the returned result, the foreign characters are gone and there are spaces.
In anyways, why are foreign characters being replaced with spaces when I use the same codepage before using the component?
Thanks.
|