THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

John Paul Cook

Social media and special characters

I’ve previously blogged about using Unicode with T-SQL to put superscripts, subscripts, and special characters into text strings. Unicode is also useful in formatting social media such as Facebook, Twitter, and that dinosaur otherwise known as email. When you can’t set properties of text such as italicizing the subject line of an email message or adding subscripts to a Facebook post, Unicode can make it possible. There are Unicode characters that are intrinsically italicized. Others are intrinsically superscripted or subscripted.

Here is an example of a subject line containing a subscript and italics:


Figure 1. Italicized Unicode characters found in the Mathematical Alphanumeric Symbols group were used in an email subject line.

To specify Unicode characters, you need a good tool. If you a Windows user, BabelMap is a great tool and it is legally free, even for commercial use. (The author does accepted donations if you want to contribute.) Download the zip file, extract it, and double-click the exe to run it. It is a portable app, so there’s no installation. It just works.

What is really helpful about BabelMap is that it has features to help you find the Unicode character you need. You can select a grouping of characters or search for a specific character. For example, to find a subscripted form of the number 2, search for SUBSCRIPT TWO. Searching for SUBSCRIPT 2 won’t work, you must use SUBSCRIPT TWO.


Figure 2. Searching for SUBSCRIPT TWO.

The Edit Buffer is what I use to build Unicode text strings that I paste into email subject lines or social media.


Figure 3. Superscripts, special characters, Greek symbols, subscripts, bold, and italics in Facebook.

Sometimes Unicode special characters cause rendering problems as the Twitter post shows:


Figure 4. Notice the whitespace appearing before the uppercase O. It is an artifact because the input string does not have any whitespace preceding the O.

Even Notepad can be enhanced with bold and italics.


Figure 5. Notepad with bold and italics.

Published Tuesday, October 2, 2012 6:05 PM by John Paul Cook

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS


No Comments

Leave a Comment


About John Paul Cook

John Paul Cook is a database and Azure specialist in Houston. He previously worked as a Data Platform Solution Architect in Microsoft's Houston office. Prior to joining Microsoft, he was a SQL Server MVP. He is experienced in SQL Server and Oracle database application design, development, and implementation. He has spoken at many conferences including Microsoft TechEd and the SQL PASS Summit. He has worked in oil and gas, financial, manufacturing, and healthcare industries. John is also a Registered Nurse currently studying to be a psychiatric nurse practitioner. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2. Connect on LinkedIn

This Blog



Privacy Statement