cfqueryparam unicode characters

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

  1. #1

    Default cfqueryparam unicode characters

    I am storing Unicode characters in sqlserver.

    If I use :

    SELECT * table values WHERE a=N"#val1#" it works fine.

    However if I use:

    SELECT * table values WHERE a=<cfqueryparam value=N"#val1#"
    cfsqltype="cf_sql_varchar">

    I get the following error:

    Invalid token '"' found on line 16 at column 51.
    The CFML compiler was processing:

    a cfqueryparam tag beginning on line 16, column 31.
    a cfqueryparam tag beginning on line 16, column 31.

    Can someone please help?

    doramon Guest

  2. Similar Questions and Discussions

    1. AxAcroPDF LoadFile contains Unicode (CJK) characters
      I'm using AcroPDF.dll version 9.0 in my C#.Net Windows Forms application. I initialize an instance of the Adobe control, and use the LoadFile method...
    2. Unicode characters from DB2 using JDBC in ColdFusion MX7
      JDBC driver from ColdFusion MX 7 does not return Unicode characters to me. I create data sources for one Unicode DB2 7.2 database -- one for direct...
    3. Unicode characters above FFFF
      How can I generate/display on a page/ Unicode characters based on unicode scalar values? I know ColdFusion function chr() works very good for...
    4. Unicode characters and ado.
      I have an Access 2002 database which stores unicode characters. I am using adodb.recordset object to display these fields on a web page. If I were...
    5. entering unicode characters
      I would really appreciate some help with this. I am using mozilla (1.2.1) with XFree86 (3.3.6). How can I enter a unicode character into mozilla?
  3. #2

    Default Re: cfqueryparam unicode characters

    lose the unicode hinting (N') and read [url]http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=F9553D86-20ED-7DEE-2A913AFD8651643F[/url].

    PaulH Guest

  4. #3

    Default Re: cfqueryparam unicode characters

    Great! Now I don't need 1 set of code for MS Access and another for SQL Server. Thanks Paul for pointing this out.
    doramon Guest

  5. #4

    Default Re: cfqueryparam unicode characters

    well if you do that you're probably missing out on some of the goodies that sql
    server has to offer that access doesn't (or does in a limited way). stored
    procedures, triggers, identities, full-text indexing, etc. all can really power
    up db interactions.

    PaulH 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