Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Escape Characters

Posted on April 17, 2013October 26, 2015 By David Kittell
' for a single quote
" for a double quote
 for a backslash
\0 for a null character
a for an alert character
b for a backspace
f for a form feed
n for a new line
r for a carriage return
t for a horizontal tab
v for a vertical tab
uxxxx for a unicode character hex value (e.g. u0020)
x is the same as u, but you don't need leading zeroes (.g. x20)
Uxxxxxxxx for a unicode character hex value (longer form needed for generating surrogates)
Originally Posted on April 17, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code CSharp

Post navigation

Previous post
Next post

Related Posts

Windows 10 – Chocolatey Developer Setup

Posted on June 26, 2018October 7, 2020

# Install Chocolatey if not installed # Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’)) Write-Host "Installing VSCode…" choco install vscode -y Write-Host "Installing Slack…" choco install slack -y Write-Host "Installing Git…" choco install git -y Write-Host "Installing 7zip…" choco install 7zip -y # OPTIONAL…

Read More

C# GetData DataSet Function

Posted on May 21, 2015October 26, 2015

Great for populating just about anything you can databind. using System.Configuration; using System.Data.SqlClient; using System.Data; private DataSet GetData(string query) { SqlCommand cmd = new SqlCommand(query); using (SqlConnection con = new SqlConnection(connString)) { using (SqlDataAdapter sda = new SqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = cmd; using (DataSet ds = new…

Read More

UNIX – Remove Apache, MySQL & PHP

Posted on October 30, 2015October 30, 2015

WARNING – THIS WILL REMOVE WITHOUT PROMPT dpkg -l *apache* *php* *mysql* phpmyadmin | grep ^ii | awk ‘{ print $2}’ | xargs sudo apt-get -y purge –auto-remove rm -r /etc/apache2 rm -r /etc/php5 rm -r /etc/mysql sudo apt-get –assume-yes purge apache* php* mysql* phpmyadmin sudo apt-get –assume-yes autoremove sudo…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes