Solved

Bad translation of True/False in ASP

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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