
May 23rd, 2006, 06:45 PM
| | | ® vs. ? question
Does anybody have any idea why 2 identical classic asp pages, hitting the
same Oracle schema, but deployed on 2 different servers will render the
registered trade mark differently?
Example:
PROTONIX®
get displayed when calling the page deployed on server A, while
PROTONIX?
get displayed from calling the same code deployed on server B (still hitting
the same Oracle schema)
The Oracle field is defined is VARCHAR2
Both pages are being called from the same browser instance on workstation C. | 
May 23rd, 2006, 07:35 PM
| | | Re: ® vs. ? question
Roy wrote:[color=blue]
> Does anybody have any idea why 2 identical classic asp pages, hitting
> the same Oracle schema, but deployed on 2 different servers will
> render the registered trade mark differently?[/color]
Does "same Oracle schema" mean "same Oracle instance"? Could the problem not
be the web server?
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. | 
May 23rd, 2006, 07:45 PM
| | | Re: ® vs. ? question
Both servers use IIS, what should I check on the server to find out the cause?
"Dave Anderson" wrote:
[color=blue]
> Roy wrote:[color=green]
> > Does anybody have any idea why 2 identical classic asp pages, hitting
> > the same Oracle schema, but deployed on 2 different servers will
> > render the registered trade mark differently?[/color]
>
> Does "same Oracle schema" mean "same Oracle instance"? Could the problem not
> be the web server?
>
>
> --
> Dave Anderson
>
> Unsolicited commercial email will be read at a cost of $500 per message. Use
> of this email address implies consent to these terms.
>
>
>[/color] | 
May 23rd, 2006, 09:45 PM
| | | Re: ® vs. ? question
"Roy" <Roy@discussions.microsoft.com> wrote in message
news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...[color=blue]
> Does anybody have any idea why 2 identical classic asp pages, hitting the
> same Oracle schema, but deployed on 2 different servers will render the
> registered trade mark differently?
>
> Example:
>
> PROTONIX®
>
> get displayed when calling the page deployed on server A, while
>
> PROTONIX?
>
> get displayed from calling the same code deployed on server B (still[/color]
hitting[color=blue]
> the same Oracle schema)
>
> The Oracle field is defined is VARCHAR2
>
> Both pages are being called from the same browser instance on workstation[/color]
C.[color=blue]
>[/color]
Ultimately you will be outputing your text using a form of Response.Write.
It's at this point that a unicode string in ASP is encoded according the
current Session.CodePage setting. (In IIS 6 there is a Response.CodePage as
well).
You will probably find that Session.CodePage on server A is different than
on server B at the point when the value is written.
The default Session.CodePage is defined by the system code page however any
page that modifies this value can affect the output of other pages during
that session. | 
June 5th, 2006, 09:05 PM
| | | Re: ® vs. ? question
Both servers show 1252 as Session.CodePage.
Any other ideas on what difference I should check?
"Anthony Jones" wrote:
[color=blue]
>
> "Roy" <Roy@discussions.microsoft.com> wrote in message
> news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...[color=green]
> > Does anybody have any idea why 2 identical classic asp pages, hitting the
> > same Oracle schema, but deployed on 2 different servers will render the
> > registered trade mark differently?
> >
> > Example:
> >
> > PROTONIX®
> >
> > get displayed when calling the page deployed on server A, while
> >
> > PROTONIX?
> >
> > get displayed from calling the same code deployed on server B (still[/color]
> hitting[color=green]
> > the same Oracle schema)
> >
> > The Oracle field is defined is VARCHAR2
> >
> > Both pages are being called from the same browser instance on workstation[/color]
> C.[color=green]
> >[/color]
>
> Ultimately you will be outputing your text using a form of Response.Write.
>
> It's at this point that a unicode string in ASP is encoded according the
> current Session.CodePage setting. (In IIS 6 there is a Response.CodePage as
> well).
>
> You will probably find that Session.CodePage on server A is different than
> on server B at the point when the value is written.
>
> The default Session.CodePage is defined by the system code page however any
> page that modifies this value can affect the output of other pages during
> that session.
>
>
>
>
>
>[/color] | 
June 6th, 2006, 10:15 AM
| | | Re: ® vs. ? question
"Roy" <Roy@discussions.microsoft.com> wrote in message
news:C7A853FC-F771-49BF-A6AE-D7A708549DE1@microsoft.com...[color=blue]
> Both servers show 1252 as Session.CodePage.
> Any other ideas on what difference I should check?
>[/color]
One diagnostic you might try is to have the code create a unicode text file
using the Scripting.FileSystemObject and write the content of the field
value to the file. Make sure you use Unicode.
Open the file in Notepad to see what character is actually coming through.
if ® then something is happening to it on its way to the browser but if it's
? then the character isn't coming through to ADO correctly.
Does anything else happen to the value before you Response.Write it?
Does it ultimately end up being sent to the client via Response.Write or
some other method?
[color=blue]
> "Anthony Jones" wrote:
>[color=green]
> >
> > "Roy" <Roy@discussions.microsoft.com> wrote in message
> > news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...[color=darkred]
> > > Does anybody have any idea why 2 identical classic asp pages, hitting[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > same Oracle schema, but deployed on 2 different servers will render[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > registered trade mark differently?
> > >
> > > Example:
> > >
> > > PROTONIX®
> > >
> > > get displayed when calling the page deployed on server A, while
> > >
> > > PROTONIX?
> > >
> > > get displayed from calling the same code deployed on server B (still[/color]
> > hitting[color=darkred]
> > > the same Oracle schema)
> > >
> > > The Oracle field is defined is VARCHAR2
> > >
> > > Both pages are being called from the same browser instance on[/color][/color][/color]
workstation[color=blue][color=green]
> > C.[color=darkred]
> > >[/color]
> >
> > Ultimately you will be outputing your text using a form of[/color][/color]
Response.Write.[color=blue][color=green]
> >
> > It's at this point that a unicode string in ASP is encoded according the
> > current Session.CodePage setting. (In IIS 6 there is a Response.CodePage[/color][/color]
as[color=blue][color=green]
> > well).
> >
> > You will probably find that Session.CodePage on server A is different[/color][/color]
than[color=blue][color=green]
> > on server B at the point when the value is written.
> >
> > The default Session.CodePage is defined by the system code page however[/color][/color]
any[color=blue][color=green]
> > page that modifies this value can affect the output of other pages[/color][/color]
during[color=blue][color=green]
> > that session.
> >
> >
> >
> >
> >
> >[/color][/color] | 
June 8th, 2006, 07:35 PM
| | | Re: ® vs. ? question
I used Scripting.FileSystemObject to save a text file in unicode and the
character came as ?. So this is an ADO issue.
What should I check on the ADO side ?
Thank so much for your great suggestion in the puzzle.
Roy.
"Anthony Jones" wrote:
[color=blue]
>
> "Roy" <Roy@discussions.microsoft.com> wrote in message
> news:C7A853FC-F771-49BF-A6AE-D7A708549DE1@microsoft.com...[color=green]
> > Both servers show 1252 as Session.CodePage.
> > Any other ideas on what difference I should check?
> >[/color]
>
> One diagnostic you might try is to have the code create a unicode text file
> using the Scripting.FileSystemObject and write the content of the field
> value to the file. Make sure you use Unicode.
>
> Open the file in Notepad to see what character is actually coming through.
> if ® then something is happening to it on its way to the browser but if it's
> ? then the character isn't coming through to ADO correctly.
>
> Does anything else happen to the value before you Response.Write it?
> Does it ultimately end up being sent to the client via Response.Write or
> some other method?
>
>[color=green]
> > "Anthony Jones" wrote:
> >[color=darkred]
> > >
> > > "Roy" <Roy@discussions.microsoft.com> wrote in message
> > > news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...
> > > > Does anybody have any idea why 2 identical classic asp pages, hitting[/color][/color]
> the[color=green][color=darkred]
> > > > same Oracle schema, but deployed on 2 different servers will render[/color][/color]
> the[color=green][color=darkred]
> > > > registered trade mark differently?
> > > >
> > > > Example:
> > > >
> > > > PROTONIX®
> > > >
> > > > get displayed when calling the page deployed on server A, while
> > > >
> > > > PROTONIX?
> > > >
> > > > get displayed from calling the same code deployed on server B (still
> > > hitting
> > > > the same Oracle schema)
> > > >
> > > > The Oracle field is defined is VARCHAR2
> > > >
> > > > Both pages are being called from the same browser instance on[/color][/color]
> workstation[color=green][color=darkred]
> > > C.
> > > >
> > >
> > > Ultimately you will be outputing your text using a form of[/color][/color]
> Response.Write.[color=green][color=darkred]
> > >
> > > It's at this point that a unicode string in ASP is encoded according the
> > > current Session.CodePage setting. (In IIS 6 there is a Response.CodePage[/color][/color]
> as[color=green][color=darkred]
> > > well).
> > >
> > > You will probably find that Session.CodePage on server A is different[/color][/color]
> than[color=green][color=darkred]
> > > on server B at the point when the value is written.
> > >
> > > The default Session.CodePage is defined by the system code page however[/color][/color]
> any[color=green][color=darkred]
> > > page that modifies this value can affect the output of other pages[/color][/color]
> during[color=green][color=darkred]
> > > that session.
> > >
> > >
> > >
> > >
> > >
> > >[/color][/color]
>
>
>[/color] | 
June 9th, 2006, 12:55 PM
| | | Re: ® vs. ? question
"Roy" <Roy@discussions.microsoft.com> wrote in message
news:374E95DB-46A3-4E88-9CD6-2A777E2F5732@microsoft.com...[color=blue]
> I used Scripting.FileSystemObject to save a text file in unicode and the
> character came as ?. So this is an ADO issue.
> What should I check on the ADO side ?
>[/color]
I'm afraid I know very little about Oracle I suggest you take this problem
to an Oracle forum where those familiar with it will be able to help you.
[color=blue]
> Thank so much for your great suggestion in the puzzle.
>
> Roy.
>
> "Anthony Jones" wrote:
>[color=green]
> >
> > "Roy" <Roy@discussions.microsoft.com> wrote in message
> > news:C7A853FC-F771-49BF-A6AE-D7A708549DE1@microsoft.com...[color=darkred]
> > > Both servers show 1252 as Session.CodePage.
> > > Any other ideas on what difference I should check?
> > >[/color]
> >
> > One diagnostic you might try is to have the code create a unicode text[/color][/color]
file[color=blue][color=green]
> > using the Scripting.FileSystemObject and write the content of the field
> > value to the file. Make sure you use Unicode.
> >
> > Open the file in Notepad to see what character is actually coming[/color][/color]
through.[color=blue][color=green]
> > if ® then something is happening to it on its way to the browser but if[/color][/color]
it's[color=blue][color=green]
> > ? then the character isn't coming through to ADO correctly.
> >
> > Does anything else happen to the value before you Response.Write it?
> > Does it ultimately end up being sent to the client via Response.Write or
> > some other method?
> >
> >[color=darkred]
> > > "Anthony Jones" wrote:
> > >
> > > >
> > > > "Roy" <Roy@discussions.microsoft.com> wrote in message
> > > > news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...
> > > > > Does anybody have any idea why 2 identical classic asp pages,[/color][/color][/color]
hitting[color=blue][color=green]
> > the[color=darkred]
> > > > > same Oracle schema, but deployed on 2 different servers will[/color][/color][/color]
render[color=blue][color=green]
> > the[color=darkred]
> > > > > registered trade mark differently?
> > > > >
> > > > > Example:
> > > > >
> > > > > PROTONIX®
> > > > >
> > > > > get displayed when calling the page deployed on server A, while
> > > > >
> > > > > PROTONIX?
> > > > >
> > > > > get displayed from calling the same code deployed on server B[/color][/color][/color]
(still[color=blue][color=green][color=darkred]
> > > > hitting
> > > > > the same Oracle schema)
> > > > >
> > > > > The Oracle field is defined is VARCHAR2
> > > > >
> > > > > Both pages are being called from the same browser instance on[/color]
> > workstation[color=darkred]
> > > > C.
> > > > >
> > > >
> > > > Ultimately you will be outputing your text using a form of[/color]
> > Response.Write.[color=darkred]
> > > >
> > > > It's at this point that a unicode string in ASP is encoded according[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > current Session.CodePage setting. (In IIS 6 there is a[/color][/color][/color]
Response.CodePage[color=blue][color=green]
> > as[color=darkred]
> > > > well).
> > > >
> > > > You will probably find that Session.CodePage on server A is[/color][/color][/color]
different[color=blue][color=green]
> > than[color=darkred]
> > > > on server B at the point when the value is written.
> > > >
> > > > The default Session.CodePage is defined by the system code page[/color][/color][/color]
however[color=blue][color=green]
> > any[color=darkred]
> > > > page that modifies this value can affect the output of other pages[/color]
> > during[color=darkred]
> > > > that session.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >[/color]
> >
> >
> >[/color][/color] | 
June 9th, 2006, 06:15 PM
| | | Re: ® vs. ? question
See Below ( no top posting please)
On Fri, 9 Jun 2006 12:48:32 +0100, "Anthony Jones" <Ant@yadayadayada.com> wrote:
[color=blue]
>
>"Roy" <Roy@discussions.microsoft.com> wrote in message
>news:374E95DB-46A3-4E88-9CD6-2A777E2F5732@microsoft.com...[color=green]
>> I used Scripting.FileSystemObject to save a text file in unicode and the
>> character came as ?. So this is an ADO issue.
>> What should I check on the ADO side ?
>>[/color]
>
>I'm afraid I know very little about Oracle I suggest you take this problem
>to an Oracle forum where those familiar with it will be able to help you.
>
>[color=green]
>> Thank so much for your great suggestion in the puzzle.
>>
>> Roy.
>>
>> "Anthony Jones" wrote:
>>[color=darkred]
>> >
>> > "Roy" <Roy@discussions.microsoft.com> wrote in message
>> > news:C7A853FC-F771-49BF-A6AE-D7A708549DE1@microsoft.com...
>> > > Both servers show 1252 as Session.CodePage.
>> > > Any other ideas on what difference I should check?
>> > >
>> >
>> > One diagnostic you might try is to have the code create a unicode text[/color][/color]
>file[color=green][color=darkred]
>> > using the Scripting.FileSystemObject and write the content of the field
>> > value to the file. Make sure you use Unicode.
>> >
>> > Open the file in Notepad to see what character is actually coming[/color][/color]
>through.[color=green][color=darkred]
>> > if ® then something is happening to it on its way to the browser but if[/color][/color]
>it's[color=green][color=darkred]
>> > ? then the character isn't coming through to ADO correctly.
>> >
>> > Does anything else happen to the value before you Response.Write it?
>> > Does it ultimately end up being sent to the client via Response.Write or
>> > some other method?
>> >
>> >
>> > > "Anthony Jones" wrote:
>> > >
>> > > >
>> > > > "Roy" <Roy@discussions.microsoft.com> wrote in message
>> > > > news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...
>> > > > > Does anybody have any idea why 2 identical classic asp pages,[/color][/color]
>hitting[color=green][color=darkred]
>> > the
>> > > > > same Oracle schema, but deployed on 2 different servers will[/color][/color]
>render[color=green][color=darkred]
>> > the
>> > > > > registered trade mark differently?
>> > > > >
>> > > > > Example:
>> > > > >
>> > > > > PROTONIX®
>> > > > >
>> > > > > get displayed when calling the page deployed on server A, while
>> > > > >
>> > > > > PROTONIX?
>> > > > >
>> > > > > get displayed from calling the same code deployed on server B[/color][/color]
>(still[color=green][color=darkred]
>> > > > hitting
>> > > > > the same Oracle schema)
>> > > > >
>> > > > > The Oracle field is defined is VARCHAR2
>> > > > >
>> > > > > Both pages are being called from the same browser instance on
>> > workstation
>> > > > C.
>> > > > >
>> > > >
>> > > > Ultimately you will be outputing your text using a form of
>> > Response.Write.
>> > > >
>> > > > It's at this point that a unicode string in ASP is encoded according[/color][/color]
>the[color=green][color=darkred]
>> > > > current Session.CodePage setting. (In IIS 6 there is a[/color][/color]
>Response.CodePage[color=green][color=darkred]
>> > as
>> > > > well).
>> > > >
>> > > > You will probably find that Session.CodePage on server A is[/color][/color]
>different[color=green][color=darkred]
>> > than
>> > > > on server B at the point when the value is written.
>> > > >
>> > > > The default Session.CodePage is defined by the system code page[/color][/color]
>however[color=green][color=darkred]
>> > any
>> > > > page that modifies this value can affect the output of other pages
>> > during
>> > > > that session.
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> >
>> >
>> >[/color][/color]
>[/color]
The NLS_ parameters ( which control the character set used) is controlled by the registry setings of the Oracle client
machine ( in your case the web server using the asp code) ; as long as ANY NLS_ parameter is set in the client regisrty,
ALL NLS_ parameters will use the registry setings or revert to default..
So, when running the same code from2 different servers results in different resuts, it is likely to mean that the values
in the registry section for Oracle differ. | 
June 9th, 2006, 06:45 PM
| | | Re: ® vs. ? question
"Turkbear" wrote:
[color=blue]
> See Below ( no top posting please)
> On Fri, 9 Jun 2006 12:48:32 +0100, "Anthony Jones" <Ant@yadayadayada.com> wrote:
>[color=green]
> >
> >"Roy" <Roy@discussions.microsoft.com> wrote in message
> >news:374E95DB-46A3-4E88-9CD6-2A777E2F5732@microsoft.com...[color=darkred]
> >> I used Scripting.FileSystemObject to save a text file in unicode and the
> >> character came as ?. So this is an ADO issue.
> >> What should I check on the ADO side ?
> >>[/color]
> >
> >I'm afraid I know very little about Oracle I suggest you take this problem
> >to an Oracle forum where those familiar with it will be able to help you.
> >
> >[color=darkred]
> >> Thank so much for your great suggestion in the puzzle.
> >>
> >> Roy.
> >>
> >> "Anthony Jones" wrote:
> >>
> >> >
> >> > "Roy" <Roy@discussions.microsoft.com> wrote in message
> >> > news:C7A853FC-F771-49BF-A6AE-D7A708549DE1@microsoft.com...
> >> > > Both servers show 1252 as Session.CodePage.
> >> > > Any other ideas on what difference I should check?
> >> > >
> >> >
> >> > One diagnostic you might try is to have the code create a unicode text[/color]
> >file[color=darkred]
> >> > using the Scripting.FileSystemObject and write the content of the field
> >> > value to the file. Make sure you use Unicode.
> >> >
> >> > Open the file in Notepad to see what character is actually coming[/color]
> >through.[color=darkred]
> >> > if ® then something is happening to it on its way to the browser but if[/color]
> >it's[color=darkred]
> >> > ? then the character isn't coming through to ADO correctly.
> >> >
> >> > Does anything else happen to the value before you Response.Write it?
> >> > Does it ultimately end up being sent to the client via Response.Write or
> >> > some other method?
> >> >
> >> >
> >> > > "Anthony Jones" wrote:
> >> > >
> >> > > >
> >> > > > "Roy" <Roy@discussions.microsoft.com> wrote in message
> >> > > > news:7E3F6211-3DED-420C-B6C3-949E7974CF19@microsoft.com...
> >> > > > > Does anybody have any idea why 2 identical classic asp pages,[/color]
> >hitting[color=darkred]
> >> > the
> >> > > > > same Oracle schema, but deployed on 2 different servers will[/color]
> >render[color=darkred]
> >> > the
> >> > > > > registered trade mark differently?
> >> > > > >
> >> > > > > Example:
> >> > > > >
> >> > > > > PROTONIX®
> >> > > > >
> >> > > > > get displayed when calling the page deployed on server A, while
> >> > > > >
> >> > > > > PROTONIX?
> >> > > > >
> >> > > > > get displayed from calling the same code deployed on server B[/color]
> >(still[color=darkred]
> >> > > > hitting
> >> > > > > the same Oracle schema)
> >> > > > >
> >> > > > > The Oracle field is defined is VARCHAR2
> >> > > > >
> >> > > > > Both pages are being called from the same browser instance on
> >> > workstation
> >> > > > C.
> >> > > > >
> >> > > >
> >> > > > Ultimately you will be outputing your text using a form of
> >> > Response.Write.
> >> > > >
> >> > > > It's at this point that a unicode string in ASP is encoded according[/color]
> >the[color=darkred]
> >> > > > current Session.CodePage setting. (In IIS 6 there is a[/color]
> >Response.CodePage[color=darkred]
> >> > as
> >> > > > well).
> >> > > >
> >> > > > You will probably find that Session.CodePage on server A is[/color]
> >different[color=darkred]
> >> > than
> >> > > > on server B at the point when the value is written.
> >> > > >
> >> > > > The default Session.CodePage is defined by the system code page[/color]
> >however[color=darkred]
> >> > any
> >> > > > page that modifies this value can affect the output of other pages
> >> > during
> >> > > > that session.
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> >
> >> >
> >> >[/color]
> >[/color]
>
> The NLS_ parameters ( which control the character set used) is controlled by the registry setings of the Oracle client
> machine ( in your case the web server using the asp code) ; as long as ANY NLS_ parameter is set in the client regisrty,
> ALL NLS_ parameters will use the registry setings or revert to default..
>
> So, when running the same code from2 different servers results in different resuts, it is likely to mean that the values
> in the registry section for Oracle differ.
>[/color]
How do I access these registry settings? Is that through Oracle client gui,
or the windows registry editor? | 
June 9th, 2006, 06:55 PM
| | | Re: ® vs. ? question
Turkbear wrote:[color=blue]
> See Below ( no top posting please)[/color]
Please do some snipping ...
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" | 
June 9th, 2006, 07:05 PM
| | | Re: ® vs. ? question
On Fri, 9 Jun 2006 10:43:02 -0700, Roy <Roy@discussions.microsoft.com> wrote:
[color=blue]
>
>
>"Turkbear" wrote:
>
>.Snipped[color=green][color=darkred]
>> >[/color]
>>
>> The NLS_ parameters ( which control the character set used) is controlled by the registry setings of the Oracle client
>> machine ( in your case the web server using the asp code) ; as long as ANY NLS_ parameter is set in the client regisrty,
>> ALL NLS_ parameters will use the registry setings or revert to default..
>>
>> So, when running the same code from2 different servers results in different resuts, it is likely to mean that the values
>> in the registry section for Oracle differ.
>>[/color]
>How do I access these registry settings? Is that through Oracle client gui,
>or the windows registry editor?[/color]
The windows registry on each web server ( be careful, ask your DBA for help if unsure what to remove)..
There should be an section in HKLM_Software_Oracle where NLS_ parametrrs are listed..Be sure they are the same ( or
delete them entirely, then Oracle's system setings will apply) | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 205,338 network members.
|