Re: CHR in ASP and CFMX

2004-08-31 Thread Robert Everland III
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Robert Everland III
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Adam Haskell
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 =

Re: CHR in ASP and CFMX

2004-08-31 Thread Jochem van Dieten
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Jochem van Dieten
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]

Re: CHR in ASP and CFMX

2004-08-31 Thread Adam Haskell
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Robert Everland III
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Jochem van Dieten
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

Re: CHR in ASP and CFMX

2004-08-31 Thread Robert Everland III
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

RE: CHR in ASP and CFMX

2004-08-30 Thread Ewok
What characters are you trying to use? These look to be the same thing…. cfoutput#chr(13)##chr(10)#/cfoutput %= chr(13) chr(10) % or %= VBCrLf % VB also has a lot of constants for these… Like VBCrLf is the same as Chr(13) Chr(10) VBCR is the same as Chr(13) VBFormFeed is the same as