Solved

Bad translation of True/False in ASP

Posted on 2004-10-17
7
519 Views
Last Modified: 2008-02-01
My recent system is WinXp SP2 and IIS 5.1 using the french canadian language

The following code don't work anymore  in ASP (it was working fine with
win95 and PWS of Frontpage98)

      sql = "UPDATE MyBase SET "
      sql = sql & "Show= " & True

I found that he sql sent to the ODBC database is :
  Update MyBase Set  Show = Vrai
instead of  the expected :
  Update MyBase Set  Show = True

The IIS ASP interpreter translate the Boolean value True in his french
equivalent Vrai , and the resulting string is not recognise by my Access
database  who expected the True value.

How can I tell IIS to interpret the True/False value with it's english
equivalent while keeping my system interface in french?

Thank's for your help.
0
Comment
Question by:proger
7 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 12334505
Hi proger,

I'm not too sure of how to do this, so this isn't really an answer to your question as a possible workaround. Is it possible to substitute 1 instead of True?

Regards,
Zyloch
0
 

Author Comment

by:proger
ID: 12335175
Hi Zyloch,

This workaround work fine (I have tried it), but I have a lot of code already on the IIS server and the good solution wil be to have IIS to behave properly.

Thanks

0
 
LVL 5

Expert Comment

by:LlamaJoe
ID: 12335865
have you tried adjusting the asp page directive?

<% @ LANGUAGE=VBScript CODEPAGE=1252 %>

or any of the other page directives? codepage, lcid, language, etc.
http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_scrpt_vbs.asp?frame=true

0
 

Author Comment

by:proger
ID: 12488044
Mt final solution has been to put this code in the global.asa file at the root directory of my site.

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnStart
  Session.LCID=4105
End Sub
</SCRIPT>
0
 

Accepted Solution

by:
PAQ_Man earned 0 total points
ID: 13435897
PAQed with points refunded (250)

PAQ_Man
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now