Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | 2 | (show all)   Print Thread
Standard User cheshire_man
(experienced) Tue 07-Sep-10 18:27:02
Print Post

Where does character 146 (dec) come from?


[link to this post]
 
One of the web sites I do has a contact from. The text box is free format though limited to a max. no. of characters and is validated to only contain the specified permitted characters.

A recent user kept getting her message rejected. By a circuitous route I was able to get the text concerned. When I looked at it I found that it contained a slightly odd looking apostrophe. Looking at it in a hex viewer I found it was 146 decimal, 92 hex. It appears to be a right closing quote in the extended ISO set used by Windows. What intrigues me is I cannot see how she managed to enter it from her keyboard. There were two other apostrophes in the message, but these were both the normal 39 decimal, 27 hex. So somehow she managed from one keyboard to generate two different apostrophe-like symbols.

I've fixed the code but am intrigued as how she got the character into a text box in a browser.

Any thoughts?

Tony
Standard User deleted
(deleted) Tue 07-Sep-10 18:36:30
Print Post

Re: Where does character 146 (dec) come from?


[re: cheshire_man] [link to this post]
 
Is it a backtick "`"?

on my keyboard it's above the tab
Standard User cheshire_man
(experienced) Tue 07-Sep-10 18:40:14
Print Post

Re: Where does character 146 (dec) come from?


[re: deleted] [link to this post]
 
I'd checked that one - made a file in Notepad with all keyboard characters, including that one, and viewed the file in a hex viewer.

That's 96 decimal, 60 hex. Standard ASCII

Tony

Edited by cheshire_man (Tue 07-Sep-10 18:40:29)


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Tue 07-Sep-10 18:40:54
Print Post

Re: Where does character 146 (dec) come from?


[re: cheshire_man] [link to this post]
 
Hold down the <Alt> key and type 146 on the numric keypad. You can produce any character that way (although on my setup its capital A E dipthong rather than a closing quote). Thus: �.
Standard User cheshire_man
(experienced) Tue 07-Sep-10 18:44:50
Print Post

Re: Where does character 146 (dec) come from?


[re: deleted] [link to this post]
 
Indeed.

But I really can't believe this person, in sending a message about some vandalism, would have done that.

Tony
Standard User XRaySpeX
(knowledge is power) Tue 07-Sep-10 19:00:54
Print Post

Re: Where does character 146 (dec) come from?


[re: deleted] [link to this post]
 
Need Num Lock On to do that in IE.

Char 126 = �

1999: Freeserve 48K Dial-Up => 2005: Wanadoo 1 Meg BB => 2007: Orange 2 Meg BB => 2008: Orange 8 Meg LLU BB => 2010: Orange 16 Meg LLU BB
Standard User Kenneth
(legend) Tue 07-Sep-10 19:08:17
Print Post

Re: Where does character 146 (dec) come from?


[re: cheshire_man] [link to this post]
 
Possibly they have typed the message in Word (to spell check it) then cut and pasted it into the text box - e.g. "In Text Box" �Cut & Pasted�

Ken

Nostalgia is memory with the pain removed
Standard User deleted
(deleted) Tue 07-Sep-10 19:29:08
Print Post

Re: Where does character 146 (dec) come from?


[re: cheshire_man] [link to this post]
 
Well, if you've got a better explanation....
Standard User cheshire_man
(experienced) Tue 07-Sep-10 19:30:32
Print Post

Re: Where does character 146 (dec) come from?


[re: Kenneth] [link to this post]
 
That sounds good - may also have been an email using Word as the email editor. Though still doesn't explain the two different apostrophes in the text.

You can see them and the differences in these text extracts
can't
that�s


Tony
Standard User deleted
(deleted) Tue 07-Sep-10 19:31:09
Print Post

Re: Where does character 146 (dec) come from?


[re: Kenneth] [link to this post]
 
Does Word automatically convert quotes into opening and closing ones? If so, then I think you've nailed it.
Pages in this thread: 1 | 2 | (show all)   Print Thread

Jump to