> bert db wrote:
> > Well the oracle database uses the charset ISO 8859-1 which works
> fine for all the coldfusion pages.
>
> unless you've changed the default encoding for cf from utf-8, it
> shouldn't (for
> some chars anyway).
Well I have these directives in my entry point:
<cfcontent type="text/html; charset=iso-8859-1">
<cfset setencoding("FORM", "iso-8859-1")>
<cfset setencoding("URL", "iso-8859-1")>
>
> > I have also looked at the Cp1252 and it should contain the ⬠sign
> (Hex80).
>
> oops, you're right i was thinking of latin-1, cp1252 is a superset of
> latin-1
> (apparently i forgot even though i keep reminding people of this fact
> on an
> almost daily basis ;-).
>
> > All of this tells me that there is something quite weird...
>
> what's the encoding on that page? are you using cfprocessingdirective?
> is there
> a public page that shows this problem that i can peek at? can i see
> the code?
> (send off-list).
>
I just found a solution, well sort of a hack.
I found out that when I wrote the "â¬" directly in a text field in the builder
it prints okay (whichever encoding I use (cp1252 or identity-H). I then
isolated the value of the character returned by the database for this sign (
128 for the encoding iso 8859-1, but for whatever reason it is 191 for the
cp1252 (hex(80)= 191 ?? ;-)) ) and transform all of these characters to the â¬
sign with a simple replace.
I would prefer to understand the underlying cause, but since i've started with
coldfusion a year ago, I have learned not to ask too many questions and try to
find hacks for whatever does not work correctly.
Thanks a lot for you patience.
B.
PS.
(If you want to have fun run this code you will be amazed by the result:
<cfloop from='5.00' to='5.25' step='0.01' index="i">
<cfoutput>
<cfset test=#i#>
#test# ---
#test * 100# ---
#(test * 100) MOD 100# --- <br>
</cfoutput>
</cfloop>
<cfoutput>
<br>
<cfset test=5.01>
#test# ---
#test * 100# ---
#(test * 100) MOD 100# --- <br>
</cfoutput>
<cfoutput>
<cfset test=5.02>
#test# ---
#test * 100# ---
#(test * 100) MOD 100# --- <br>
</cfoutput>
<cfoutput>
<cfset test=5.03>
#test# ---
#test * 100# ---
#(test * 100) MOD 100# --- <br>
</cfoutput>
<cfoutput>
<cfset test=5.10>
#test# ---
#test * 100# ---
#(test * 100) MOD 100# --- <br>
</cfoutput>
)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313916
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4