MySQL and foreign languages

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default MySQL and foreign languages

    I don't know if someone has faced this.. I have a web site where people
    register and login. 90% of visitors register with Arabic usernames. When
    users became so many, MySQL started to do something weird.

    When users login, I simply perform "select ID from musers where username =
    '" & username & "' and pwd = '" & pwd & "'" to check login information..

    What is weird is that this statement started to get more than one result
    sometimes (if password is the same) although usernames are different! I used
    to use LIKE but when this happened, I used = but still the same result.

    Any idea why this is happening? Although usernames are different, MySQL gets
    usernames that are similar (in a way that I could not find out)! Is there a
    way to overcome this?

    Regards,
    Mohamed


    Mohamed Hosam Guest

  2. Similar Questions and Discussions

    1. Special characters in foreign languages
      I am rewriting a page in Spanish and cannot find code within Dreamweaver for special characters: tilde, accent marks, inverted question and...
    2. text in foreign languages
      I have a version of Illustrator 10 that I used to design a card game. I would like to change the text in my card game to a non roman foreign...
    3. Foreign Languages
      Hello: I am building a Slideshow using an xml file and the titles of each slide are in text nodes of the file. I want these string of text in...
    4. Microsoft Access & Foreign Languages
      I am writing an sites for mulitple languages, even though in the script I tell the encoding type to be for the language in Microsoft Access it...
    5. how do you create foreign key constraints in mySQL? Or Close to it?
      create table if not exists nnet_produkt_varegruppe ( nnet_produkt_varegruppe_id int not null auto_increment, primary...
  3. #2

    Default Re: MySQL and foreign languages

    MySQL must be installed as a UNICODE instance to be able to dealt correctly
    with Unicode:

    [url]http://www.mysql.com/documentation/maxdb/13/7e05c2acfead44ade8183219051298/content.htm[/url]

    Otherwise, \0 byte inside unicode strings will be seen as the Null byte or
    End of String character or something like that.

    S. L.


    "Mohamed Hosam" <info@internetplus.biz> wrote in message
    news:OR0kXbbwDHA.2440@TK2MSFTNGP12.phx.gbl...
    > I don't know if someone has faced this.. I have a web site where people
    > register and login. 90% of visitors register with Arabic usernames. When
    > users became so many, MySQL started to do something weird.
    >
    > When users login, I simply perform "select ID from musers where username =
    > '" & username & "' and pwd = '" & pwd & "'" to check login information..
    >
    > What is weird is that this statement started to get more than one result
    > sometimes (if password is the same) although usernames are different! I
    used
    > to use LIKE but when this happened, I used = but still the same result.
    >
    > Any idea why this is happening? Although usernames are different, MySQL
    gets
    > usernames that are similar (in a way that I could not find out)! Is there
    a
    > way to overcome this?
    >
    > Regards,
    > Mohamed
    >
    >

    Sylvain Lafontaine Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139