Solved

Bad translation of True/False in ASP

Posted on 2004-10-17
7
516 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

17 Experts available now in Live!

Get 1:1 Help Now