problem with polish letters passing to database

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default problem with polish letters passing to database

    hi.

    I have problem with polish letters like '?????????' passing from flex to CF
    script writing them to database . All I get is a string like "??????".

    My database charset is UTF-8 and collation of tables is also utf-8
    (utf8_general_ci ).everything is utf-8. Variables passed from flex and returned
    back from CF script are fine.

    Previously I used to work with php and amfphp and there were no problems with
    encoding and database. I'm not newbie to flash and flex.

    I work on MacPro Intel.

    strange issue..

    farmazone Guest

  2. Similar Questions and Discussions

    1. Polish characters in text input (linux problem only)
      I've got some problems with TextInput. When i want to type polish characters (RIGHT ALT + combination: A,C,E,L,N,O,S,Z and X) - I've got no results....
    2. HELP! Passing from database to asp page allowing user input then passing to another database.
      My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order...
    3. Passing database info to page allow user input then pass into another database
      Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not...
    4. Printing Polish characters - PROBLEM
      Hi I have a problem with printing Polish characters under Solaris 8 I set Polish locale, and on X-Windows it prints OK But from the line it...
    5. Problem with printig polish fonnts from OA on Solaris 8.0
      Hi I have problem with printing Polish characters from OA under Oracle Aplication Can anybody help Me Thank You in Advance Marek Stojecki
  3. #2

    Default Re: problem with polish letters passing to database

    farmazone wrote:
    > I have problem with polish letters like '?????????' passing from flex to CF
    > script writing them to database . All I get is a string like "??????".
    can you verify that they end up in cf correctly? just have cf write the text to
    a file.

    if you're sure the issue is on the cf end of things, what db? what db driver are
    you using?
    PaulH **AdobeCommunityExpert** Guest

  4. #3

    Default Re: problem with polish letters passing to database

    I use MySQL 5.0.41 .

    They end up correctly for sure. I put :
    <cffile charset="utf-8" output = "#str#" action = "write" file =
    "#ExpandPath('./')#foo.txt" attributes = normal >

    and it writes the correct string (after I added charset="utf-8" attributes) so
    it is OK.

    here goes whole function
    <cffunction name="update" access="remote" returntype="any">
    <cfargument name="str" type="string" required="yes">

    <cffile charset="utf-8" output = "#str#" action = "write" file =
    "#ExpandPath('./')#foo.txt" attributes = normal >

    <cfquery name="flashQuery" datasource="#This.datasource#"
    username="#This.username#" password="#This.password#">
    UPDATE miasto_texts SET
    text_pl="#str#"

    WHERE id="21"
    </cfquery>
    <cfreturn true>
    </cffunction>

    farmazone Guest

  5. #4

    Default Re: problem with polish letters passing to database

    farmazone wrote:
    > I use MySQL 5.0.41 .
    what db driver? make sure it's the JDBC one not ODBC. have you added
    "useUnicode=true&characterEncoding=utf8" to the url for the mysql dsn?
    > <cffunction name="update" access="remote" returntype="any">
    > <cfargument name="str" type="string" required="yes">
    this looks ok except that i'd recommend using cfqueryparam & i'm not a big fan
    of the "this" scope.
    PaulH **AdobeCommunityExpert** Guest

  6. #5

    Default Re: problem with polish letters passing to database

    oh. thank you.

    it's working when I added 'useUnicode=true&characterEncoding=utf8'. but I did
    it via CF Administrator Page and on my remote server I have no access to this
    setting I think. Is there another way?

    farmazone Guest

  7. #6

    Default Re: problem with polish letters passing to database

    farmazone wrote:
    > it via CF Administrator Page and on my remote server I have no access to this
    > setting I think. Is there another way?
    not that i know of, just tell your host you need this.

    PaulH **AdobeCommunityExpert** 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