Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

arabic cfm vs htm content

4 views
Skip to first unread message

webidmuser

unread,
Jan 5, 2005, 6:45:08 AM1/5/05
to
Hello
I have a cfm file that has arabic content (not retrieved via query from a db).
it runs pretty well on CF4.5.
After upgrading to CFMX, the cfm file does not display properly the arabic
font, it displays rubbish characters instead.
Now if i rename the extension of the file to .htm rather than .cfm, the
content is displayed properly.

I do not want to have the idea that upgrading to MX was a bad idea, as i have
lots of websites with arabic content and all are displaying the same rubbish
text whereas they were working fine with CF4.5
Please advise,


PaulH

unread,
Jan 5, 2005, 12:48:44 PM1/5/05
to
what encoding did you use for the cf4.5 pages?

webidmuser

unread,
Jan 6, 2005, 8:36:25 AM1/6/05
to
Hi
thansk for the reply
I downloaded the unifier and converted the files, but i had now more rubbish
characters than before!!
i am stuck now and i do not want to go back to my early version of cf4.5
having paid lots for the MX version, knowing that i have many website on the
stake here
If anybody faced similiar problem, his/her assistance is highly appreciated

thanks

PaulH

unread,
Jan 6, 2005, 11:52:40 AM1/6/05
to
lets try again:

webidmuser

unread,
Jan 7, 2005, 4:55:53 AM1/7/05
to
Hello
can you explain more by the type of encoding used?
below in the coding of the page:


___________________Begin______________________--

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>

</head>

<body background="../../commonfiles/bigbg.gif" LEFTMARGIN="0" TOPMARGIN="0"
MARGINWIDTH="0"
MARGINHEIGHT="0"
onLoad="MM_preloadImages('../laboutiquemariage/accueil/aaccueil.gif','../labouti
quemariage/offrir_un_cadeau/aoffrircad.gif','../laboutiquemariage/consulter_lali
ste/alist.gif','../laboutiquemariage/mon_mariage/amonmarriage.gif','../laboutiqu
emariage/sequence_souvenir/asouvenir.gif')">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="6"><img border="0" src="../../commonfiles/slogan.gif"
width="574" height="66"></td>
</tr>
<tr>
<td><a href="../../contactez_nouz/contactez_nous.html"
onMouseOver="MM_showHideLayers('wed','','hide')"><img border="0"
src="../../commonfiles/contact.gif" width="86" height="23"></a></td>
<td><a href="../../musique/musique.html"
onMouseOver="MM_showHideLayers('wed','','hide')"><img border="0"
src="../../commonfiles/music.gif" width="103" height="23"></a></td>
<td><a href="../../carte_de_credit/carte_de_credit.html"
onMouseOver="MM_showHideLayers('wed','','hide')"><img border="0"
src="../../commonfiles/credit.gif" width="132" height="23"></a></td>
<td><a href="../../naissance/naisssance.html"
onMouseOver="MM_showHideLayers('wed','','hide')"><img border="0"
src="../../commonfiles/naissance.gif" width="68" height="23"></a></td>
<td><a href="../../cadeaux/cadeaux.html"
onMouseOver="MM_showHideLayers('wed','','hide')"><img border="0"
src="../../commonfiles/gift.gif" width="69" height="23"></a></td>
<td><a href="javascript:;"
onMouseOver="MM_showHideLayers('wed','','show')"><img border="0"
src="../../commonfiles/wed.gif" width="116" height="23"></a></td>
</tr>
</table>
</td>
<td><a href="http://www.laboutique.ws"><img border="0"
src="../../commonfiles/logo.jpg" width="168" height="89"></a></td>
</tr>
<tr>
<td dir ="rtl">
<div align="left">
<table border="0" width="574" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="center"><img border="0" src="pic.jpg"
hspace="6" vspace="0" align="left" width="205" height="215"><br>
<img src="title.gif" width="159" height="53" align="right"></p>
<p align="center">&nbsp;</p>
<blockquote>
<p align="right"><br>
<font face="arial (arabic)" size="3" color="#3F3F3F">?? ?????
?</font><font face="arial (arabic)" size="3"
color="#3F3F3F">??? ???? ???
???????? ?? ????????&nbsp;<br>
???? ?? ??????? ???? ????? ??? ????? ??????&nbsp;<br>
???? ??? ???? "??????" ??????? ????? ?? ?????...</font></p>
</blockquote>
<p>&nbsp;</td>
</tr>
</table>
</div>
</td> <td valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img border="0" src="../../commonfiles/laboutique.gif"
width="168" height="21"></td>
</tr>
<tr>
<td><a href="../accueil/index.cfm"
onMouseOver="MM_swapImage('Image1','','../accueil/aaccueil.gif',1)"
onMouseOut="MM_swapImgRestore()"><img src="../../commonfiles/accueil.gif"
name="Image1" width="168" height="22" border="0" id="Image1"></a></td>
</tr>
<tr>
<td><a href="../offrir_un_cadeau/select_language.cfm"
onMouseOver="MM_swapImage('Image2','','../offrir_un_cadeau/aoffrircad.gif',1)"
onMouseOut="MM_swapImgRestore()"><img src="../../commonfiles/offrircad.gif"
name="Image2" width="168" height="22" border="0" id="Image2"></a></td>
</tr>
<tr>
<td><a href="../consulter_laliste/index.cfm"
onMouseOver="MM_swapImage('Image3','','../consulter_laliste/alist.gif',1)"
onMouseOut="MM_swapImgRestore()"><img src="../../commonfiles/list.gif"
name="Image3" width="168" height="22" border="0" id="Image3"></a></td>
</tr>
<tr>
<td><a href="../mon_mariage/loginform.cfm"
onMouseOver="MM_swapImage('Image4','','../mon_mariage/amonmarriage.gif',1)"
onMouseOut="MM_swapImgRestore()"><img src="../../commonfiles/monmarriage.gif"
name="Image4" width="168" height="22" border="0" id="Image4"></a></td>
</tr>
<tr>
<td><a href="../sequence_souvenir/index.cfm"
onMouseOver="MM_swapImage('Image5','','../sequence_souvenir/asouvenir.gif',1)"
onMouseOut="MM_swapImgRestore()"><img src="../../commonfiles/souvenir.gif"
name="Image5" width="168" height="22" border="0" id="Image5"></a></td>
</tr>
</table>
</td>
</tr>

</table>


<p>&nbsp;</p>
<div id="wed" style="position:absolute; width:104px; height:75px; z-index:1;
left: 460px; top: 89px; visibility: hidden"><img
src="../../commonfiles/layerwed.gif" width="104" height="75" border="0"
usemap="#Map">
<map name="Map">
<area shape="rect" coords="16,4,93,14" href="../accueil/index.cfm">
<area shape="rect" coords="11,16,84,27"
href="../offrir_un_cadeau/select_language.cfm">
<area shape="rect" coords="7,32,88,43"
href="../consulter_laliste/index.cfm">
<area shape="rect" coords="13,46,89,59"
href="../mon_mariage/loginform.cfm">
<area shape="rect" coords="15,61,88,74"
href="../sequence_souvenir/index.cfm">
</map>
</div>
<p>&nbsp;</p>

</body>

</html>


PaulH

unread,
Jan 7, 2005, 6:35:37 AM1/7/05
to
well your code says, windows-1256 encoding & that page renders ok from your
website as that encoding so i guess that's the one.

the code you posted was run thru unifier? is so did you specify the original
encoding as windows-1256?

if you want to keep windows-1256 as your site's encoding either follow the
example below or change the defaultCharset value in cf_root/lib/neo-runtime.xml
file:

<var name='defaultCharset'><string>UTF-8</string></var>

from "utf-8" to "windows-1256".

<!--- in application.cfm --->
<cfcontent type="text/html charset=windows-1256">
<cfset setEncoding("form","windows-1256")>
<cfset setEncoding("url","windows-1256")>

<!--- at the top of each cf page --->
<cfprocessingdirective pageencoding="windows-1256">

thearmartin

unread,
Jan 27, 2005, 1:32:46 AM1/27/05
to
test message please disregard

viscometer

unread,
Feb 15, 2005, 4:37:20 PM2/15/05
to
Hi I'm having the same problem, except that I'm using mostly utf-8 in 4.5 to
store it all in a MS SQL Server, which has worked great for many languages
(chinese, arabic, hindi, japanese, korean, hebrew, russian, etc). Now, CF 6.1
MX won't display these items--they are gibberish. I've tried adding the
processingdirective, adding the jdbc item as a separate datasource type, coding
the pages themselves as unicode with the BOM using dreamweaver, etc--everything
I can find or think of, and it still doesn't work. I'd like to run 6.1, but
all the supposed unicode fixes seem to spoil my 4.5 unicode data. Very
frustrating thanks

PaulH

unread,
Feb 16, 2005, 6:02:25 AM2/16/05
to
utf-8 isn't ucs2, which is what java/cf/sql server natively use. you'll have to
swap out the utf-8 text to ucs2. cheapest way is to make cfhttp calls to a
cf4/5 template (ie on a cf4/5 server), that simply dumps out the delimited
data, from an mx server which in turn re-inserts the data as proper unicode.


afbausch

unread,
Mar 1, 2005, 7:48:36 AM3/1/05
to
Paul, we are experiencing euro-sign problems with CFMX61 and MS Access.
Inserting ? via forms with input=text and textarea will result in a square or ?
character in the database and consequently in the output screens. We have
reconfigured neo-runtime.xml with <var
name='defaultCharset'><string>ISO-8859-15</string></var> and for our MySQL
databases we have used 'useUnicode=true&amp;characterEncoding=iso-8859-15' in
de ODBC conncection field. For MySQL, no problems, but how do we get MS Access
to accept correctly?

PaulH

unread,
Mar 1, 2005, 1:58:43 PM3/1/05
to
first off, next time start a new thread.

try the access for unicode driver & use unicode instead (or try first with that iso).

0 new messages