Solved

Bad translation of True/False in ASP

Posted on 2004-10-17
7
531 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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