Author Topic: ASCII Characters  (Read 83593 times)

Offline Bob B.

  • Jupiter
  • ***
  • Posts: 819
  • Bob the Excel Guru™
    • Rocket & Space Technology
Re: ASCII Characters
« Reply #30 on: January 28, 2013, 10:23:22 PM »
The really weird thing is that he reports these codes do work in MS Word.  I guess that software must have its own key-handling code that overrides the system.

It works in some cases.  It doesn't work on my home computer, which uses Office 2000.  However, it does work on my work computer, which uses Office 2003.  I also tried a computer at work using Office 2007 and it also worked.  I'm going to see if I can find anything different in the setup between my work computer and my home computer other than the software version.

Offline Not Myself

  • Earth
  • ***
  • Posts: 217
  • Unwanted Irritant
Re: ASCII Characters
« Reply #31 on: January 29, 2013, 01:35:35 AM »
ΩöΔ

This is with Firefox, on a Windows PC, after I used the registry edit hack linked to in my earlier post.

First character: ALT 234
Second character: ALT 916
Third character: ALT +394

The "+" was on the numeric keypad, and 394 is hex for 916 decimal.  I don't know a way to do it in decimal, at least not yet.  Also, the third character came out as something different before I implemented the registry hack.

So do the registry hack, and you can probably due the old-fashioned CP-437 codes by using ALT followed by the decimal number, and UTF-8 codes by using ALT followed by the "+" on the numeric keypad, followed by the hexadecimal code.

Uh oh, just discovered something :(  I can't do all the hexadecimal codes, because ALT followed by "b" is intercepted by my browser and interpreted as a command.  Maybe there is a way around this.
The internet - where bigfoot is real and the moon landings aren't.

Offline Not Myself

  • Earth
  • ***
  • Posts: 217
  • Unwanted Irritant
Re: ASCII Characters
« Reply #32 on: January 29, 2013, 02:05:59 AM »
Wow, it just keeps getting better and better.

Found one report that the method I used does not work in IE.  Didn't test it myself.

This method might be helpful also.  A free component of Windows that allows you to type in the characters using a pop-up.

http://blogs.msdn.com/b/michkap/archive/2005/05/18/419117.aspx

I suspect none of this will change the situation at the other board - as per LO's speculation, it might be an issue with the SQL database.
The internet - where bigfoot is real and the moon landings aren't.

Offline ka9q

  • Neptune
  • ****
  • Posts: 3014
Re: ASCII Characters
« Reply #33 on: January 29, 2013, 03:57:54 AM »
My best guess is that a conversion is taking place, and it is on your computer.  The same non-ASCII codes entered by me produce êëìíî.  The "ALT" method doesn't work for me, as I'm on a different OS
Agreed. I have the same problem here, and I'm running Linux on a Sony Vaio laptop. Some way to enter the hex for an arbitrary Unicode character and have it turned into UTF-8 would be nice. (The Unicode tables I see only show the code points, not their UTF-8 encodings.)



Offline cjameshuff

  • Mars
  • ***
  • Posts: 373
Re: ASCII Characters
« Reply #34 on: January 29, 2013, 10:16:23 AM »
Agreed. I have the same problem here, and I'm running Linux on a Sony Vaio laptop. Some way to enter the hex for an arbitrary Unicode character and have it turned into UTF-8 would be nice. (The Unicode tables I see only show the code points, not their UTF-8 encodings.)

If you've got Ruby installed, run interactive Ruby (irb or pry) and use .chr():
Code: [Select]
pry(main)> 0x3A9.chr('UTF-8')
=> "Ω"

Offline grmcdorman

  • Earth
  • ***
  • Posts: 151
Re: ASCII Characters
« Reply #35 on: January 29, 2013, 10:24:44 AM »
There are two applications you can try that may help:
Both let you enter characters via mnemonic sequences instead of those blasted numeric values. For example, æ (ligature) would be <key>, A, E in AllChars; Δ is <key>, g, D (where <key> is the configured compose key, e.g. the Menu key).

AllChars seems to mess up upper case when the compose sequence contains upper case, but fiddling with Shift and/or Caps Lock afterwards fixes it.

Here are some characters entered by AllChars:

Ω - Menu, g, W
ö - Menu, ", o
Δ - Menu, g, D

Unfortunately, both look pretty quiescent; AllChars was last updated in 2009, and FreeCompose in 2011.

On Linux/Unix, the compose sequences are standard, although they may need to be enabled via configuration.

Bob B., can you try a different browser? IE, in particular, is notorious for doing its own thing with standards.

Offline Bob B.

  • Jupiter
  • ***
  • Posts: 819
  • Bob the Excel Guru™
    • Rocket & Space Technology
Re: ASCII Characters
« Reply #36 on: January 29, 2013, 10:41:15 AM »
Bob B., can you try a different browser?

I fear change.

Offline grmcdorman

  • Earth
  • ***
  • Posts: 151
Re: ASCII Characters
« Reply #37 on: January 29, 2013, 11:07:53 AM »
I wouldn't suggest necessarily switching to a different browser; rather, to get an additional data point, see what Chrome or Firefox does. If they behave and IE doesn't, then I would blame IE.

Offline grmcdorman

  • Earth
  • ***
  • Posts: 151
Re: ASCII Characters
« Reply #38 on: January 29, 2013, 11:08:42 AM »
Let me try AllChars from IE 9: (9.0.8112)

AllChars:

ö
Ω
Δ

Alt+NumPad:
234: Û
235: Ù

Offline Bob B.

  • Jupiter
  • ***
  • Posts: 819
  • Bob the Excel Guru™
    • Rocket & Space Technology
Re: ASCII Characters
« Reply #39 on: January 29, 2013, 12:29:59 PM »
I didn't realize it, but my work computer already has Chrome installed on it.

Using Chrome I get the exact same results as with Internet Explorer, that is, characters in the 1-255 range display properly, but those in the 900-series display different characters than the Greek letters I want.  For instance, 945, 946 & 947 should be lower case alpha, beta, gamma, but I get ▒ ▓ │

Offline Not Myself

  • Earth
  • ***
  • Posts: 217
  • Unwanted Irritant
Re: ASCII Characters
« Reply #40 on: January 29, 2013, 12:48:21 PM »
I didn't realize it, but my work computer already has Chrome installed on it.

Using Chrome I get the exact same results as with Internet Explorer, that is, characters in the 1-255 range display properly, but those in the 900-series display different characters than the Greek letters I want.  For instance, 945, 946 & 947 should be lower case alpha, beta, gamma, but I get ▒ ▓ │

If you take 945, 946, and 947 modulo 256, you get 177, 178, and 179.  And those three characters on Code Page-437 are what you got above, even though they have been translated to the corresponding encodings in UTF-8.

From the sources I've found, it looks like you either need some supplemental software, or the registry hack I linked to earlier, which will allow you to use both the CP-437 and the UTF-8 codes.
The internet - where bigfoot is real and the moon landings aren't.

Offline Echnaton

  • Saturn
  • ****
  • Posts: 1490
Re: ASCII Characters
« Reply #41 on: January 29, 2013, 01:19:13 PM »
▒±▒▒▓│
I didn't realize it, but my work computer already has Chrome installed on it.

Using Chrome I get the exact same results as with Internet Explorer, that is, characters in the 1-255 range display properly, but those in the 900-series display different characters than the Greek letters I want.  For instance, 945, 946 & 947 should be lower case alpha, beta, gamma, but I get ▒ ▓ │

I get the same characters in Firefox and in MS Word.
The sun shone, having no alternative, on the nothing new. —Samuel Beckett

Offline Echnaton

  • Saturn
  • ****
  • Posts: 1490
Re: ASCII Characters
« Reply #42 on: January 29, 2013, 01:24:04 PM »
For Firefox and Word I get

Alt 224 = α
Alt 225 = ß
Alt 228  = Σ
Alt 226 = Γ

ETA This is on Win XP.
« Last Edit: January 29, 2013, 01:45:25 PM by Echnaton »
The sun shone, having no alternative, on the nothing new. —Samuel Beckett

Offline grmcdorman

  • Earth
  • ***
  • Posts: 151
Re: ASCII Characters
« Reply #43 on: January 29, 2013, 01:39:12 PM »
Windows 7, default settings, Firefox:

Alt 224 = Ó
Alt 225 = ß
Alt 228 = õ
Alt 226 = Ô
Alt 945 = ▒
Alt 946 = ▓
Alt 947 = │

I don't think that using the Alt-codes is a reliable (or easy-to-remember) way to enter these characters, especially as it depends on the system and browser character set.

I would suggest trying AllChars or FreeCompose.

To add: All of the above characters show up that way in the Quick Reply window.

I suspect that what may be happening for Bob B. is that something along the line is translating to Code Page 437, and then to UTF-8.

Offline grmcdorman

  • Earth
  • ***
  • Posts: 151
Re: ASCII Characters
« Reply #44 on: January 29, 2013, 01:54:30 PM »
Hmm. Wiki page on the Alt code has good information:

http://en.wikipedia.org/wiki/Alt_code

It appears that, for three digits, the expected result is Code Page 437 if your system is using English, and Code Page 850 otherwise.

For four digits, with a leading 0 (e.g. 0161) the result is a character in the Windows-1252 character set.

The characters Bob B. wants do not exist in any of the above three character sets; all three are eight-bit character sets.

None of the references I can find mention anything about codes in the 900-range.