Unicode Problem in MySQL database

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Unicode Problem in MySQL database

    I am using an MySQL database with utf-8 character set. When I check the data
    through phpMyAdmin, the data looks fine (I am using hebrew chars). but when I
    try quering for the data from a coldfusion page, I get chars that looks more
    like thai.

    I am using <cfprocessingdirective pageencoding="UTF-8"> in every page of the
    application.
    And
    <cfset setEncoding("URL", "UTF-8")>
    <cfset setEncoding("FORM", "UTF-8")>
    <cfcontent type="text/html; charset=UTF-8">
    In the Application.cfm file.

    I even tried using connection string in the DSN configuration. But it didn't
    work Any advice, reference to an online resorce or guidance in the right
    direction will be very helpful.

    Many thanks in advanced,
    Silver Strike

    SilverStrike Guest

  2. Similar Questions and Discussions

    1. MySQL 5.0, FULL-TEXT Indexing and Search Arabic Data, Unicode
      Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT...
    2. Access database with Unicode support
      I'm trying to verify Access 2000 databases on a CF MX 6.1 Windows installation. I can verify the databases normally, but when I turn on Unicode...
    3. MySql database connection problem
      Hi Everyone, I've just installed ColdFusion MX 6.1 on Red Hat (it's also runing Plesk to manage all my domains. I don't konw if that throws a...
    4. Unicode Data and Database
      Dear Friends, I have a database which contains records in Unicode format. I access my this database (which is MS Access database) in ASP by using...
    5. Is there a way to work with Unicode database (IBM DB27.2) using ODBC socket data source?
      Is there a way to work with Unicode database (IBM DB2 7.2) using ODBC socket data source? Standard ODBC services shipped with ColdFusion MX 7.0...
  3. #2

    Default Re: Unicode Problem in MySQL database

    what db driver? what ver of mysql?
    PaulH Guest

  4. #3

    Default Re: Unicode Problem in MySQL database

    I am using MySQL ver. 4.0.18.
    I am waiting for a response from the support team regarding the DB driver info

    thanks again

    SilverStrike Guest

  5. #4

    Default Re: Unicode Problem in MySQL database

    > I am using MySQL ver. 4.0.18.
    > I am waiting for a response from the support team regarding the DB driver
    info

    As far as I know you'll need MySQL 4.1.x or 5.0.x if you want Unicode
    support.

    --
    <mack />


    Neculai Macarie Guest

  6. #5

    Default Re: Unicode Problem in MySQL database

    This is what the MySQL documantations says....

    The thing is, that when I view the data with phpMyAdmin, the data looks fine.
    So where does the problem comes from? does Coldfusion has a difficulty in
    retrieving the data from that version?

    Thanks again,


    SilverStrike Guest

  7. #6

    Default Re: Unicode Problem in MySQL database

    you can often put in any sort of slop via a db's interface like that. that
    doesn't mean its correctly encoded data, it just means the db's interface works
    like that. upgrade the db or don't use unicode. and make sure you're using the
    JDBC driver, and have applied that unicode option for that mysql DSN.


    PaulH Guest

  8. #7

    Default Re: Unicode Problem in MySQL database

    OK, thanks alot for the answers...
    I understand that the solution isn't from the CFML side but from the MySQL side.

    :)
    SilverStrike 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