StringTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Encodings : StringTools/DecodeEntities

StringTools

  

DecodeEntities

  

convert UTF-8 special characters to HTML entities in a string

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DecodeEntities( s )

Parameters

s

-

string; Maple string

Description

• 

The DecodeEntities(s) command converts HTML entities in the input string s to UTF-8 characters.

• 

The conversion recognizes named entities like "π" as well as hex and decimal Unicode entities like "π" and "&#960".

Examples

withStringTools:

rDecodeEntitiesπ + π + π

rπ + π + π

(1)

convertr,bytes

207,128,32,43,32,207,128,32,43,32,207,128

(2)

rDecodeEntitiesエンコード

rエンコード

(3)

rEncodeEntitiesr:lprintr

"エンコード"

picharDecodeEntitiesπ

picharπ

(4)

rEncodeEntitiescatIs ,pichar, > 3.14:lprintr

"Is π > 3.14"

Compatibility

• 

The StringTools[DecodeEntities] command was introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

StringTools

StringTools[EncodeEntities]

StringTools[Escape]