Professional Web Applications Themes

Problem with cfcontent and cht SHIFT_JIS - Coldfusion - Advanced Techniques

I moved my site from CF 5 to CF MX 6.1 ( 6,1,0,63958) and as many I have trouble displaying page in japanese (it was working fine on CF 5). I followed a technote here and used : <cfcontent type="text/html; cht=SHIFT_JIS"> as advised but know I get this error : sun.io.CharToByteJIS0208.getIndex1()[S (My java vesion is 1.4.2) Any help warmly welcome......

  1. #1

    Default Problem with cfcontent and cht SHIFT_JIS

    I moved my site from CF 5 to CF MX 6.1 ( 6,1,0,63958) and as many I have
    trouble displaying page in japanese (it was working fine on CF 5). I followed a
    technote here and used :
    <cfcontent type="text/html; cht=SHIFT_JIS"> as advised but know I get this
    error :
    sun.io.CharToByteJIS0208.getIndex1()[S

    (My java vesion is 1.4.2)

    Any help warmly welcome...


    Ellis75 Guest

  2. #2

    Default Re: Problem with cfcontent and cht SHIFT_JIS

    search your cf install dir. if you find a file i18n.jar, delete it.
    PaulH Guest

  3. #3

    Default Re: Problem with cfcontent and cht SHIFT_JIS

    Thank's for your help Paul !

    I removed the i18n.jar and I don't have the error anymore.

    But I still can't display correctly shift_jis text like I did with CF5.

    Without cfcontent (the page is automatically set to utf-8 by ColdFusion), I
    get :
    ?|???^??

    Now with a <cfcontent type="text/html; cht=SHIFT_JIS"> I get :
    ?|???^??
    (The page encoding shows as shift_jis)

    Using CF5 I get japanese characters.

    So I decided to convert all my japanese info in SQL Server 2000 into utf-8,
    but I didn't find yet how to automate the process...
    What I was able to do is :
    On the CF5 box, I can display my text in japanese. If I copy some japanese
    text from my browser window, and paste it in another browser window in a form
    generated by the CFMX box, and store it in MSSQL 2000 using a query like this :
    update mytable set mycolumn=N'#japanesefield#' where id=#form.id#
    it works (text appears in japanese when browsing the database with enterprise
    manager, and I'm able to display japanese text in utf-8 pages displayed by
    CFMX).

    I would like to avoid copy/pasting every data on by base, how should I proceed
    ?


    Ellis75 Guest

  4. #4

    Default Re: Problem with cfcontent and cht SHIFT_JIS

    the cheapest way i think is to create a page on your cf5 box that dumps out
    your existing data. call that from your mx box (via cfhttp) using a page that
    takes that data and re-inserts into your sql server.


    PaulH Guest

  5. #5

    Default Re: Problem with cfcontent and cht SHIFT_JIS

    Many thanks Paul, I did what you suggested and was able to convert all my data !

    Everything is working fine now, thanks again !

    Ellis75 Guest

Similar Threads

  1. Dynamic Flash - CHT PROBLEM
    By artfabrique in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: November 14th, 09:23 AM
  2. cht problem in HTTPService
    By mgunestas in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: July 6th, 04:37 PM
  3. cfcontent problem
    By alternative in forum Coldfusion - Advanced Techniques
    Replies: 10
    Last Post: June 2nd, 10:49 PM
  4. cfcontent not displaying shift_jis
    By nwilliamsmn in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: April 12th, 09:33 PM
  5. Help - cht problem
    By FRANK in forum PHP Development
    Replies: 3
    Last Post: March 1st, 11:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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