Problem with cfcontent and charset SHIFT_JIS

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Problem with cfcontent and charset 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; charset=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. Similar Questions and Discussions

    1. Dynamic Flash - CHARSET PROBLEM
      I have troubles whith passing text which i get from MySQL database to FLASH movie. CASE 1 I have a PHP script which prints some text in UTF-8...
    2. Problem writing to file.....charset I think
      I am having a problem writing to a file. I am trying to write the following to a file <cfset text = "#chr(1)##chr(0)##chr(8)#"> <cffile...
    3. charset problem in HTTPService
      Hi Please help me! Ive and HTTPService with ?takdirnameKayitRequest2? id and itis submitted to jsp1.jsp with the parameter...
    4. cfcontent not displaying shift_jis
      I am working on upgrading from ColdFusion 5 to MX 7. We have a multilingual website that, in cold fusion 5, we used endcoding (shift-jis, gb2312,...
    5. Help - charset problem
      Hi My supplier just upgraded control panel to Plesk 7. Suddenly all my php/mysql pages stopped supporting "chrset" in the meta tag, for example: ...
  3. #2

    Default Re: Problem with cfcontent and charset SHIFT_JIS

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

  4. #3

    Default Re: Problem with cfcontent and charset 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; charset=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

  5. #4

    Default Re: Problem with cfcontent and charset 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

  6. #5

    Default Re: Problem with cfcontent and charset 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

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