Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Can I safely use the 'extended' ASCII range?


Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2006, 03:04 PM
CodeOptimist CodeOptimist is offline
Freshman
 
Join Date: Jun 2003
Location: Texas
Posts: 25
Default Can I safely use the 'extended' ASCII range?


I'm writing an app that could really use some fraction symbols. I see that there are some in the "extended" ASCII character set (128-255). Is it a bad idea to use characters from that range, since it's not standardized in any way (AFAIK)?
Reply With Quote
  #2  
Old 02-18-2006, 04:16 PM
CodeOptimist CodeOptimist is offline
Freshman
 
Join Date: Jun 2003
Location: Texas
Posts: 25
Default

Bump...
Reply With Quote
  #3  
Old 02-19-2006, 02:42 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,887
Default

I think it all depends on the font which is used.
I you use one of the regular fonts and use it's upper ascii part then you will not encounter any problems.
Reply With Quote
  #4  
Old 02-19-2006, 06:44 AM
mkaras's Avatar
mkaras mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Here is a good way to evaluate the use of special symbols and the fonts that may support various symbols.

First off use the CHARMAP utility. This allows you to preview a selected font file to see the full set of glyphs supported in that font. This also helps you understand the character code for each glyph.

Evaluate the availability and tranportability of a font under Windows. A real easy way to do this is to make a simple document in something like WordPad that has the fonts and glyphs you are interested in included in the document. Make sure to save this document in a format such as RTF wherein the font selection names are preserved. Open this document on all the intended target platforms to see if the fonts on that Windows installation will correctly display the glyphs in the test document.

After this is complete you will then know if it is a reasonable idea to select the use of a certain font with your VB program. If you choose to use Arial for example you have a reasonable expectation to find that font on all Windows installations...as long as you are aware that there are unicode compatible and non-unicode compatible versions of Arial fonts. On the other hand if you choose some specialty font such as KristenITV it may be a hit and miss thing to find that font on the platforms away from your development environment.

Unicode supporting platforms and unicode compatible fonts have a huge advantage over the use of non-unicode fonts in the fact that there are standardized character codes used for each symbol. Thus the glyph coding for the symbol will stay the same no matter which font you select. Do note that not all unicode compatible font sets support all possible symbols and so if you select a font to display it may display as a "unsupported glyph" via a blank or box symbol using a different font set.

Note: If you have a full unicode supporting browser you should be able to see the fraction set that is supported to varying degrees by the unicode fonts on my system:

¼ ½ ¾ ⅓ ⅔ ⅛ ⅜ ⅝ ⅞

The unicode Arial font supports all of the above.

I appologize in advance to any readers here that are trying to access this post with a non-unicode browser and thus unable to see the fraction symbols I have used here.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->