473,799 Members | 3,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

degree symbol (weather program)

VC++
VS 2003

I am currently finishing up a weather bug program that receives data from
the weather.com weather feed, just need some finishing touches. The one
issue I have run into seems to be a simple one in the grand scheme of things.
How do I go about printing a degree symbol for the temperature? Is there an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.
--
Neal
Jan 24 '06 #1
3 11372
Hi,

check out http://www.lookuptables.com/
ascii code 167 or 248 seem to be what you are looking for.

kind regards,
Bruno.

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:95******** *************** ***********@mic rosoft.com...
VC++
VS 2003

I am currently finishing up a weather bug program that receives data from
the weather.com weather feed, just need some finishing touches. The one
issue I have run into seems to be a simple one in the grand scheme of
things.
How do I go about printing a degree symbol for the temperature? Is there
an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.
--
Neal

Jan 24 '06 #2
Hi Neal!
How do I go about printing a degree symbol for the temperature? Is there an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.


In general: You should use UNICODE.

'DEGREE SIGN': http://www.fileformat.info/info/unic...00b0/index.htm

'DEGREE CELSIUS':
http://www.fileformat.info/info/unic...2103/index.htm

'DEGREE FAHRENHEIT':
http://www.fileformat.info/info/unic...2109/index.htm

'KELVIN SIGN': http://www.fileformat.info/info/unic...212a/index.htm

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jan 24 '06 #3
Thanks, used UniCode, worked perfectly, and simply :)
--
Neal
"Jochen Kalmbach [MVP]" wrote:
Hi Neal!
How do I go about printing a degree symbol for the temperature? Is there an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.


In general: You should use UNICODE.

'DEGREE SIGN': http://www.fileformat.info/info/unic...00b0/index.htm

'DEGREE CELSIUS':
http://www.fileformat.info/info/unic...2103/index.htm

'DEGREE FAHRENHEIT':
http://www.fileformat.info/info/unic...2109/index.htm

'KELVIN SIGN': http://www.fileformat.info/info/unic...212a/index.htm

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Jan 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5867
by: Dingbat | last post by:
I am finding that when I use XSLT to display convert XML like this: <temp units="°C">23</temp> the resulting HTML displays an extra character in front of the degree symbol, like this: 23°C This happens whether I use PHP or ASP so it seems to be
2
5615
by: Freddy | last post by:
I am not an experienced programmer, but I had a VC++ program I am trying to eliminate all the VC++ commands from it...and keeping it as a normal C/C++ program......I guess I have succeeded so far, but I am getting the unresolved external symbol errors, this is what I am getting: Linking... Test.obj : error LNK2001: unresolved external symbol "void __cdecl free_vector(double *)" (?free_vector@@YAXPAN@Z)
1
2569
by: pmclinn | last post by:
I have the xml feed belowfrom this link: http://www.weather.gov/alerts/ct.rss I for the life of me can not get this data to format in a html table using client side scripting. Any help would be much appreciated. <?xml version="1.0" encoding="UTF-8" ?> - <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> - <channel> <title>Connecticut - Current Watches, Warnings and Advisories for
9
13280
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include <hash_map>//from Standard template library //and some other headers
66
3867
by: stryfedll | last post by:
Sorry this isn't directly concerning a programming language but I wanted to reach real programmers. I am in college right now and am not really interested in investing 3 more years of my life for a Bachelors degree. I know that I can learn more about computer programming if I spent the time over the next 3 years reading books and programming at my own pace rather than an instructors pace, as well as not needing to take so many electives,...
2
5334
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
1
4932
by: Shiva48 | last post by:
Thanks to Gannon11 and ro351988- Moderator. I give below the complete Java file and pls help me to rectify the errors. package com.wrox.proj2ee.ch10.app; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import com.wrox.proj2ee.ch12.*// The requesthandlers interface in this package. public class ShowRecordRequesthandler implements RequestHandler
2
2324
by: dzine | last post by:
Hi, caution....BRAND NEW NEWBIE HERE I use Quark Docs to create XML using Atomic XPort PE. The Quark docs are in the form of catalogs and I pull or export the content of the catalogs out into XML format for web transistion. In some of the XML I export through Atomic XPort PE, I get this funny symbol.... • Needless to say, it is through the entire XML code and since I am new to this process and don't know what this means, I...
2
2088
by: sandeep patil | last post by:
how to diplay the weather condiction on my webpage suppose i want to read weather from www.bbc.co.uk/weather.html how i can read it usin program
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.