Re: cfdocument not displaying arabic font [spamtrap bayes][spamtrap heur]

2010-10-29 Thread safo 2000

without cfdocument it works fine.
so anyway i tried utf-8, at least something gets displayed but as such

ARABIC TEXT PRINT TEST ام صمة اله دولة

there are some missing characters

~|
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:338664
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfdocument not displaying arabic font [spamtrap bayes][spamtrap heur]

2010-10-29 Thread Paul Hastings

On 10/29/2010 1:13 PM, safo 2000 wrote:

 without cfdocument it works fine.
 so anyway i tried utf-8, at least something gets displayed but as such

 ARABIC TEXT PRINT TEST ام صمة اله دولة

 there are some missing characters

if changing to utf-8 makes it display better then your string data *is* 
utf-8. 
i can't see how that codepage works fine either in or out of cfdocument.

i just shutdown my dev server  can't compare results, so what exactly is 
missing?

~|
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:338675
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfdocument not displaying arabic font

2010-10-28 Thread safo 2000

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
titlePRINT TEST/title
/head

 

body
table width=810 border=0
  tr
td width=225 div align=centerstrongARABIC TEXT PRINT TEST 
/strong/div/td
td width=225 div align=centerstrongspan 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


Re: cfdocument not displaying arabic font [spamtrap bayes][spamtrap heur]

2010-10-28 Thread Paul Hastings

On 10/28/2010 12:58 PM, safo 2000 wrote:
 ARABIC TEXT PRINT TEST  © ظ„ط ˆ ظ¯ ظ‡ ظپظٹ ط ¬ طˆ ظ„ظ 
 § ط © ظ…ط μ ط¨ ظ… ط § ط¸ ظ†ط

getting that w/out cfdocument. don't have that font or more likely your text is 
not encoded as windows arabic. works fine as unicode (utf-8). any reason you 
want to use that codepage instead of unicode?


~|
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:338639
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm