logo
Powered by QM on a Rpi server
Home
About OpenQM
Sales and Downloads
Help and Support
About
Login

KnowledgeBase 00119: HTML Conversion Codes

Last updated: 17 Feb 2017
Applies to: Version 3.3-0 onwards
Search  
Top level index       Full Index Search Tips
Previous article     Next article

This article was originally published as a Tip of the Week.

Two new conversion codes were added in QM release 3.3-0 to simplify generation and processing of HTML data.


The HD Conversion Code

The HD conversion code translates HTML reserved characters to or from their escape codes.

Used as an output conversion, restricted characters are replaced by their escape code equivalents. This conversion changes only the minimum set of characters required by the HTML standard. These are

   &    & 
   <    &lt; 
   >    &gt; 
   "    &quot; 
   '    &#39; 
In addition, character 128 is converted to the non-breaking space escape code, &nbsp;, and the internal representation of the Euro symbol is converted to &euro;. The ECS version of QM follows the Unicode definition for this character as codepoint 20AC. The non-ECS version uses character 160 in common with many other implementations though this is not a ratified standard.

Used as an input conversion, The full set of escape codes defined in the HTML standard are replaced by their corresponding characters.


The HU Conversion Code

The HU conversion code translates HTML URL reserved characters to or from their escape codes.

Used as an output conversion, reserved characters are replaced by their hexadecimal escape codes. For example, a comma is replaced by %2c. Spaces are replaced by + symbols.

Used as an input conversion, hexadecimal escape codes are replaced by their equivalent characters and + symbols are replaced by spaces.


Related Articles

00009: Developing a Web Site Using OpenQM



Please tell us if this article was helpful
Very     Slightly     Not at all
Comments
Email (optional)