On 12/20/2009 2:17 AM, Victor Moore wrote:

> Unfortunately I had that font already and even tried different
> variations still the same result.

if arial unicode ms is rendering as empty squares then it's probably an 
encoding 
issue.

> Just to recap: the web page shows double byte characters fine, using

and what encoding is that page using? any chance you're using cffile along the 
way & forgot to set the "charset"? double check your encoding from the db 
outwards.

> Have you tried to do this? I'm hoping is not a bug in cfcontent.

don't do much work w/spreadsheets (well not in a long while anyway) but it 
should work fine....playing around w/your & cfsearching's snippets it seems the 
key (provided the encoding is correct and note that i'm testing w/open office) 
is the

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

tag from leigh's snippet. removing/altering it's encoding, blows up the 
spreadsheet pretty good.

following snippet is unicode (utf-8).

<cfprocessingdirective pageencoding="utf-8">
<cfcontent type="application/vnd.ms-excel; charset=utf-8">
<cfheader name="Content-Disposition" charset="utf-8" value="inline; 
filename=inv.xls">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body>
<table>
<tr><td>Confirm Cash Deposit</td><td>现金存款</td></tr>
<tr><td>Accessing this function requires you to have an 
account.</td><td>阁下需 
要一个交易户口才能使用此功能。</td></tr>
<tr><td>Account ID</td><td>账户号码</td></tr>
<tr><td>Account Inaccessible</td><td>户口不能使用</td></tr>
</table>
</body>
</html>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to