Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 18th, 2009, 04:59 AM
Friend of Wrox
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default French character comparision

I have a website which is in French. Many of the values stored in website database are in French.

For Example countries table in database has following values
Côte d'Ivoire etc.

When I try to compare DATABASE values (having French charaters) in if-then-else condition, it does not work.

if rs("CountryName") = "Algérie" then
'#do something
elseif rs("CountryName") = "Bénin" then
'#do something
end if
Any idea..
Any help..
Will be appriciated...

Old August 20th, 2009, 11:12 AM
Friend of Wrox
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post

The only way i can see is to search using the chr associated with the accent.

if rs("CountryName") = "Alg"&chr(233)&"rie" then
'#do something
elseif rs("CountryName") = "B"&chr(233)&"nin" then
'#do something 
end if
Hope this helps..



Similar Threads
Thread Thread Starter Forum Replies Last Post
String comparision rajesh_css Java Basics 3 April 21st, 2009 08:41 AM
how t do comparision of elements in xsl suji XSLT 2 February 28th, 2008 12:27 PM
Code comparision ayazhoda Access VBA 2 June 27th, 2007 05:35 AM
comparision of two word documents anuradhad VB How-To 1 July 24th, 2004 04:10 PM
comparision of two documents anuradhad Access VBA 0 July 22nd, 2004 12:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.