|Powered by QM on a Rpi server|
KnowledgeBase 00119: HTML Conversion Codes
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
& & < < > > " " ' 'In addition, character 128 is converted to the non-breaking space escape code, , and the internal representation of the Euro symbol is converted to €. 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.
00009: Developing a Web Site Using OpenQM