: CHR in ASP and CFMX
When I do a CHR() in ASP and a CHR() in CFMX they come up with 2 different
values. Is there any way to match the values up?
Bob
_
[HYPERLINK http://www.houseoffusion.com/lists.cfm/link=t:4Todays Threads]
[HYPERLINK http://www.houseoffusion.com/lists.cfm/link=i:4
You would think they would be the same. Try these in ASP and CFMX and tell me if you get the same thing.
140
91
2
245
151
183
41
75
106
55
64
96
I'm running an RC4 function in CF and in ASP and they return the same numbers to change to CHR but when you do that they become different values and
I have found that some chr() in CF give some funcky output for #s
128-160 or so don't know why.
Heres a list and the ASCII value and what CF outputs as the ascii
value then what chr returns for both numbers:
128 = 8364 : = ¬
130 = 8218 : =
131 = 402 : =
132 = 8222 : =
133 =
Adam Haskell wrote:
I have found that some chr() in CF give some funcky output for #s
128-160 or so don't know why.
Probably because they are illegal characters in the charset you
are using.
Heres a list and the ASCII value and what CF outputs as the ascii
value then what chr returns for
Robert Everland III wrote:
When I do a CHR() in ASP and a CHR() in CFMX they come up with 2 different values. Is there any way to match the values up?
Use the same charset in ASP and CF MX.
Jochem
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Now that you mention that I remeber why I knew about this in the first
place. Our content team made pages that used the trade mark symbol
using windows they made it into the HTML version 153 which works great
in IE, not so much in other browsers. I had to write a function that
converted a bunch of
So how do we change the charset in ColdFusion, I found out how to change it in ASP. I have tried a meta tag in HTML, but that didn't change the output.
Bob
Robert Everland III wrote:
When I do a CHR() in ASP and a CHR() in CFMX they come up with 2
different values. Is there any way to
Robert Everland III wrote:
So how do we change the charset in ColdFusion, I found out how to change it in ASP.
You can give each template a Byte Order Mark, or you can use
cfprocessingdirective on each page.
I have tried a meta tag in HTML, but that didn't change the output.
That only
I found in order to code ColdFusion correctly I had to do this:
cfcontent type=text/html; charset=ISO-8859-1
And in ASP I did this
%response.Charset=ISO-8859-1%
I was then able to encrypt a string, urlencode it, then pass it to ASP and ASP could then use RC4 to decrypt that string.
Bob
[Todays
When I do a CHR() in ASP and a CHR() in CFMX they come up with 2 different values. Is there any way to match the values up?
Bob
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
as Chr(12)
They can be referenced either way. Maybe what you are looking for is already
there as a constant?
_
From: Robert Everland III [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 4:55 PM
To: CF-Talk
Subject: CHR in ASP and CFMX
When I do a CHR() in ASP and a CHR() in CFMX
11 matches
Mail list logo