![]() |
Forum Index : Microcontroller and PC projects : Degree symbol
Author | Message | ||||
busa Regular Member ![]() Joined: 12/02/2015 Location: AustraliaPosts: 81 |
I have a program running on the Micromite V4.6b that measures temperature and humidity in a particular room. I can poll the Micromite via a GSM module and it will SMS the current temperature and humidity back to me to take further action if necessary. My small niggle is that when it sends the SMS my phone does not include the degree symbol. The line of code that sends the SMS is Sub Update
TEXT(phoneNumber$, "The temperature is currently " + str$(temp) + "ºC and the humidity is " + str$(humid) + "% at " + time$ + " on " + date$) pause 5000 end sub I input the degree symbol using ALT + 248 on my keyboard but the phone(Android)just ignores it. Any ideas what I might be doing wrong? By the way, a huge thank you to Geoff here for his unbelievable work that has been done firstly on the Maximites and now the Micromite. It has certainly rekindled my interest in programming again especially with all the cheap modules and sensors that abound these days. My first computer was an Amstrad CPC 464 but the cost of interfacing to many sensors was out of my league. So take a bow Geoff and thanks. ![]() |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
It's a non-standard character, not present in many character sets. How it's to be input - if it does exist - will depend on the device / OS / direction you're facing. Can you really not manage without it? One way forward is to find what your destination needs (if it does have it) and then send that using CHR$() John |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Thanks for the appreciation. I actually get the most reward when I see projects such as yours - I do a bit of work to create a tool and then enthusiasts such as yourself leverage it to make great projects. But, sorry, I don't know how to make a degree symbol. Perhaps someone else has the answer. Geoff Geoff Graham - http://geoffg.net |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2442 |
try chr$(167) instead. it may work (or it may not) cheers, rob :-) |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
If Rob's Chr$(167) doesn't work then why not use a single quote! I know it's not perfect but it is better than just C or F by itself. WW |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I did a quick Google and it seem to be a common problem. You could try experimenting with the HTML code. An other option is unicode but I would stay away from that. Jim VK7JH MMedit |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
For what it's worth, this is exactly how I did it on one of my projects. System Temperature: 37'C Sure, it is not the exact symbol, but I don't think there would be many who would not be able to work out what it means. (famous last words! ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
busa Regular Member ![]() Joined: 12/02/2015 Location: AustraliaPosts: 81 |
Thanks everyone for the answers. The single quote seems the best way to go. ![]() |
||||
ajkw Senior Member ![]() Joined: 29/06/2011 Location: AustraliaPosts: 290 |
Whilst this doesn't suit the OP's application and he already seems to have found a way I just thought however I would add this as a way for a degree symbol on a LCD character display. Cheers. |
||||
paceman Guru ![]() Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
I think a lot of people have had this problem. Pity we can't go back to before 1963 when the first ASCII standard was published - then we could swap one of those old redundant control characters for a degree character. For what it's worth I use the lower case alphabetic 'o'. It's on the line rather than above, but it doesn't look too bad: 19.5oC rather than the quote: 19.5'C Greg |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
causality ≠correlation ≠coincidence |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |