How to encode Reserved Characters that are used for HTML in a barcode.
This support issue applies to the following web-based
barcode generation components:
Characters such as
%, +, and & are reserved for specific purposes, when they are seen in the
actual HTML text being sent, and the request for a barcode encoding these
characters may become distorted
when these characters are used. This is due to the HTML processor translation.
The recommended work-around according to W3C is to replace reserved
characters with the percent sign (ironically, this is the reason that the
percent sign is a reserved character) and the hexadecimal value associated
with the ASCII character. For instance, the hex value for the percent sign
is 25; therefore replace all instances of the percent sign with %25. For the ampersand, the hex value is 26, so replace all instances in the
data to encode with %26. Therefore, if the data string is 1%1&2%07,
change the string to 1%251%262%2507.
© Copyright 2002-2009 IDAutomation.com, Inc., All Rights Reserved.
Legal Notices.
|
Over 70% of Fortune 100
companies use IDAutomation's products to automate their businesses.
|
|