Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Ellis75 #1
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
-
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... -
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... -
charset problem in HTTPService
Hi Please help me! Ive and HTTPService with ?takdirnameKayitRequest2? id and itis submitted to jsp1.jsp with the parameter... -
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,... -
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: ... -
PaulH #2
Re: Problem with cfcontent and charset SHIFT_JIS
search your cf install dir. if you find a file i18n.jar, delete it.
PaulH Guest
-
Ellis75 #3
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
-
PaulH #4
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
-
Ellis75 #5
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



Reply With Quote

