Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2009, 04:59 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
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
Algérie
Bénin
Côte d'Ivoire etc.

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

Quote:
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...

Thanks!
Reply With Quote
  #2 (permalink)  
Old August 20th, 2009, 11:12 AM
Friend of Wrox
Points: 489, Level: 7
Points: 489, Level: 7 Points: 489, Level: 7 Points: 489, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: Berkshire, United Kingdom.
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default

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

Code:
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..

Cheers

Aspless
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:08 AM.


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