Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Bad translation of True/False in ASP

Posted on 2004-10-17
7
Medium Priority
?
535 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

610 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