E
emrefan
I am wondering a bit about what I should see in a message box (or in a
webpage, for that matter) when I include an unprintable ASCII
character, say ASCII 255, in there. I experimented a bit on my PC
running Traditional Chinese Windows 98SE and found that the following
javascript code produced a message that seemed to have ASCII
represented as "y".
alert( 'the following char is ASCII FF: \xff. So what does it
look like to you?' );
I had this line in the <HEAD> section of the relevant HTML file where
I put that javascript code:
<meta http-equiv='Content-Type' content='text/html; charset=Big5-
HKSCS'>
But even if I try to figure that into the picture, I still can't see
why it should come out as "y".
Can anybody please enlighten this thick mind?
webpage, for that matter) when I include an unprintable ASCII
character, say ASCII 255, in there. I experimented a bit on my PC
running Traditional Chinese Windows 98SE and found that the following
javascript code produced a message that seemed to have ASCII
represented as "y".
alert( 'the following char is ASCII FF: \xff. So what does it
look like to you?' );
I had this line in the <HEAD> section of the relevant HTML file where
I put that javascript code:
<meta http-equiv='Content-Type' content='text/html; charset=Big5-
HKSCS'>
But even if I try to figure that into the picture, I still can't see
why it should come out as "y".
Can anybody please enlighten this thick mind?