Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Data which includes foregin characters

Data which includes foregin characters

Scheduled Pinned Locked Moved Database
csharpdatabasesql-serversysadminalgorithms
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naveed Kamboh
    wrote on last edited by
    #1

    I've got data in English but that contains Some French characters too. for example Actual data The Coleg Sir Gâr Sabhal Mòr Ostaig Château du Rosey Areté Ecole La Découverte Colegio Gran Bretaña St Thérèse of Lisieux RC Primary School Search input would be: The Coleg Sir Gar (â replaced by a (English)) In data, anywhere there could bey a foregin character and that could be any foreign character How can I included these records in my Search results Using SQL or T-SQL. I am using SQL server 2005 standard. any help will bhe appreciated.

    Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

    A B I 3 Replies Last reply
    0
    • N Naveed Kamboh

      I've got data in English but that contains Some French characters too. for example Actual data The Coleg Sir Gâr Sabhal Mòr Ostaig Château du Rosey Areté Ecole La Découverte Colegio Gran Bretaña St Thérèse of Lisieux RC Primary School Search input would be: The Coleg Sir Gar (â replaced by a (English)) In data, anywhere there could bey a foregin character and that could be any foreign character How can I included these records in my Search results Using SQL or T-SQL. I am using SQL server 2005 standard. any help will bhe appreciated.

      Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      You need to define your columns as nvarchar, then they will accept these characters.

      Bob Ashfield Consultants Ltd

      N 1 Reply Last reply
      0
      • A Ashfield

        You need to define your columns as nvarchar, then they will accept these characters.

        Bob Ashfield Consultants Ltd

        N Offline
        N Offline
        Naveed Kamboh
        wrote on last edited by
        #3

        You didn't get my question I gugess. I have already that data in varchar there 10,000+ records which containt these foreign characters. When we search using english chracters they do not come in the search. So what would be the solution to show them in the search while using english characters as someone will type Foregin chracters.

        Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

        A 1 Reply Last reply
        0
        • N Naveed Kamboh

          I've got data in English but that contains Some French characters too. for example Actual data The Coleg Sir Gâr Sabhal Mòr Ostaig Château du Rosey Areté Ecole La Découverte Colegio Gran Bretaña St Thérèse of Lisieux RC Primary School Search input would be: The Coleg Sir Gar (â replaced by a (English)) In data, anywhere there could bey a foregin character and that could be any foreign character How can I included these records in my Search results Using SQL or T-SQL. I am using SQL server 2005 standard. any help will bhe appreciated.

          Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          try to use SOUNDEX. More info about SOUNDEX.[^]


          I Love T-SQL "Don't torture yourself,let the life to do it for you."

          N 1 Reply Last reply
          0
          • N Naveed Kamboh

            You didn't get my question I gugess. I have already that data in varchar there 10,000+ records which containt these foreign characters. When we search using english chracters they do not come in the search. So what would be the solution to show them in the search while using english characters as someone will type Foregin chracters.

            Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

            A Offline
            A Offline
            Ashfield
            wrote on last edited by
            #5

            Naveed Kamboh wrote:

            I have already that data in varchar there 10,000+ records which containt these foreign characters. When we search using english chracters they do not come in the search.

            In which case I think you are out of luck. If you think about it logically the characters are not the same, the ascii values of the characters differ so the strings differ.

            Bob Ashfield Consultants Ltd

            1 Reply Last reply
            0
            • B Blue_Boy

              try to use SOUNDEX. More info about SOUNDEX.[^]


              I Love T-SQL "Don't torture yourself,let the life to do it for you."

              N Offline
              N Offline
              Naveed Kamboh
              wrote on last edited by
              #6

              SoundEx doesn't work. I've tried that

              Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

              N 1 Reply Last reply
              0
              • N Naveed Kamboh

                SoundEx doesn't work. I've tried that

                Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

                N Offline
                N Offline
                Naveed Kamboh
                wrote on last edited by
                #7

                I found solution here http://www.sqlservercentral.com/Forums/Topic498678-338-1.aspx?Update=1[^]

                Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

                A 1 Reply Last reply
                0
                • N Naveed Kamboh

                  I found solution here http://www.sqlservercentral.com/Forums/Topic498678-338-1.aspx?Update=1[^]

                  Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

                  A Offline
                  A Offline
                  Ashfield
                  wrote on last edited by
                  #8

                  Just goes to show, posting to multiple forums can help. Nice one.

                  Bob Ashfield Consultants Ltd

                  1 Reply Last reply
                  0
                  • N Naveed Kamboh

                    I've got data in English but that contains Some French characters too. for example Actual data The Coleg Sir Gâr Sabhal Mòr Ostaig Château du Rosey Areté Ecole La Découverte Colegio Gran Bretaña St Thérèse of Lisieux RC Primary School Search input would be: The Coleg Sir Gar (â replaced by a (English)) In data, anywhere there could bey a foregin character and that could be any foreign character How can I included these records in my Search results Using SQL or T-SQL. I am using SQL server 2005 standard. any help will bhe appreciated.

                    Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

                    I Offline
                    I Offline
                    its rajendra
                    wrote on last edited by
                    #9

                    Hi Naveed, In case of multilingual, we shud follow nvarchar always...after that you can search everything using N'%" + SearcText + "%' .... so that it will be easy to find out the desired result.

                    N 1 Reply Last reply
                    0
                    • I its rajendra

                      Hi Naveed, In case of multilingual, we shud follow nvarchar always...after that you can search everything using N'%" + SearcText + "%' .... so that it will be easy to find out the desired result.

                      N Offline
                      N Offline
                      Naveed Kamboh
                      wrote on last edited by
                      #10

                      Can you please give me any example what do you mean I tried following query select organisationname from organisation where organisationname like N'%Arete%' It is not returning me in results "Areté" My actual stored procduer runs with following where clause @WhereClause = N'((OrganisationName COLLATE SQL_Latin1_General_CP1_CI_AI ) LIKE '%arete%' and its giving me results which wanted.

                      Naveed Kamboh Complexity kills, Write easy code for your self. Punjabi stuff

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups