Need help: Storing non english char to SQL DB.

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

  1. #1

    Default Need help: Storing non english char to SQL DB.

    Hi,

    I have a problem on storing foreign char to SQL DB.

    If user inputs a foreign char from asp page, for example, "ROSÉ", it
    will be stored in the DB as "ROSé".

    I need to be able to store as it is in the DB, "ROSÉ". The DB is ready
    to store the string. I am able to store the string to the DB via other
    mean (non GUI).

    BTW, it is displayed properly in the Web GUI.


    Thanks for any help that you can provide,
    Charles
    Charles Katili Guest

  2. Similar Questions and Discussions

    1. #39533 [NEW]: ord() cast with (unsigned char), chr() with (signed char)
      From: fred at cashette dot com Operating system: * PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug description: ...
    2. english improvement
      hi, did anyone hear about the site: http:///www.whitesmoke.com? i heard that this new program suppose to enrich your sentence. what do you...
    3. !! Outlook (bad English)
      Outlook (bad English) Hello I am Portuguese and have a very bad English I need help to create a button that opens outlook already with the...
    4. old english
      does anyone know where i can download the old english font ?
    5. - Are you learning English?
      This is a multi-part message in MIME format --48eb638b-ec01-4011-9376-86c82d58de84 Content-Type: text/html; charset=iso-8859-1...
  3. #2

    Default Re: Need help: Storing non english char to SQL DB.

    Atrax,

    I found the solution, although it was not obvious at first.

    It turns out that web application uses UTF-8 encoding, and SQL uses UCS-2.
    This different encoding standard caused the wrong data conversion.



    Charles

    Atrax <atrax@dontspamatrax.co.uk> wrote in message news:<ut5RhVAUDHA.560@TK2MSFTNGP10.phx.gbl>...
    > well, first up the SQL field will need to be Nchar or NVarchar (or
    > ntext). is it?
    >
    >
    >
    >
    >
    >
    > ________________________________________
    > Atrax. MVP, IIS
    > [url]http://rtfm.atrax.co.uk/[/url]
    >
    > newsflash : Atrax.Richedit 1.0 now released.
    > [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!
    Charles Katili 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