UAMike Posted March 4, 2020 Report Share Posted March 4, 2020 Is MEP to handle "≥" and "≤" characters? When I save a string variable containing one of these, they inevitably get turned into "=". In fact, it doesn't even seem like the editor can handle these characters... they always just turn into the "=" symbol. I would like MEP to recognize these characters and then convert them to their text form. My thought was to use the command "Variable set to ASCII Char", but I don't believe that there is a number that corresponds to these symbols. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 MAP can not do Unicode. It needs to be in the ASCII/ANSI set. However sometimes symbols that look the same exist in Unicode and ASCII. Like fancy versions. Like how Word changes straight quotation marks into 'turned in" quotes. Most users don't notice the difference. Also it depends on what font you are using. Remember these are all ones and zeros, 8 of them precisely for each character. An "A" can look like a funny symbol in Windings. There is no "greater than or equal to" in the ASCII set. But in the extended ASCII there is one at 242 and 243. But many fonts display differnt characters in the extended. http://www.asciitable.com/ I'll look after lunch if I can get one of those into a message box in MEP. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 In Courier New they make 242 (0xF2) "ò" Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 Extended ASCII charts like this all show 242 as that "O" with a feather in it's cap. It seems that most fonts abide by this instead of the original assignment. Perhaps it can't be done. I'll think more after lunch. BTW Unicode is, with a little qualification, two bytes. So MEP will usually only see the first byte and interpret that as whatever it is in the ASCII scheme. So there will be a large number that will always appear as "=" or other random character. It's cutting the character's bits in half. Quote Link to comment Share on other sites More sharing options...
UAMike Posted March 4, 2020 Author Report Share Posted March 4, 2020 19 minutes ago, Cory said: Extended ASCII charts like this all show 242 as that "O" with a feather in it's cap. It seems that most fonts abide by this instead of the original assignment. Perhaps it can't be done. I'll think more after lunch. BTW Unicode is, with a little qualification, two bytes. So MEP will usually only see the first byte and interpret that as whatever it is in the ASCII scheme. So there will be a large number that will always appear as "=" or other random character. It's cutting the character's bits in half. I've also tried using 242 and 243 without luck. Like you mentioned, it seems to end up as ò or ó Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 I believe the only solution for you would be to find a font that contains the symbols in the ANSI (Code page 437) characters. I looked at a few that sound like CP 437 but they don't seem to work for 242 and 243. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 This page shows their font containing them. Probably too ugly for your use however. Maybe someone out there has a font just for math symbols. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 4, 2020 Report Share Posted March 4, 2020 Again, too ugly probably, but this is what I had in mind. See that characters "7" and "8" are your symbols. Quote Link to comment Share on other sites More sharing options...
UAMike Posted March 4, 2020 Author Report Share Posted March 4, 2020 22 minutes ago, Cory said: Again, too ugly probably, but this is what I had in mind. See that characters "7" and "8" are your symbols. lol yeah, I guess I'll just live with this problem. Some of these standard ASCII values seem a bit strange and not very useful, whereas I would think that ≥ and ≤ are more universally known and used 😩 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.