hi,

i am trying the following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>

 
<cfprocessingdirective pageencoding = "windows-1256">
        <cfset SetEncoding("form","windows-1256")>
        <cfset SetEncoding("url","windows-1256")>
        <cfcontent type="text/html; charset=windows-1256">
    
<cfsavecontent variable="MyPage">

 

<head>
<title>PRINT TEST</title>
</head>

 

<body>
<table width="810" border="0">
  <tr>
    <td width="225" ><div align="center"><strong>ARABIC TEXT PRINT TEST 
</strong></div></td>
    <td width="225" ><div align="center"><strong><span dir="rtl" 
style="font:'Simplified Arabic'; font-size:16px">نظام بصمة الوجه 
في دولة</span></strong></div></td>
  </tr>
</table>
</body>
</html>
</cfsavecontent>

 

<cfif not(isdefined("url.DISPLAY"))>
        <cfdocument format="pdf" filename="files\print_test_cf.pdf"  
overwrite="yes">
        <cfoutput>#mypage#</cfoutput>
        
        </cfdocument>
    <cfelse>
    
    <cfoutput>#mypage#</cfoutput>
    
</cfif>

and i am getting this result

ARABIC TEXT PRINT TEST  © ظ„ط ˆ ظ¯ ظ‡ ظپظٹ ط ¬ طˆ ظ„ظ § 
ط © ظ…ط μ ط¨ ظ… ط § ط¸ ظ†ط

you will notice that the Arabic font is not displayed properly. what gives?

thanking you in advance for your insight

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338638
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to