StringTools
DecodeEntities
convert UTF-8 special characters to HTML entities in a string
Calling Sequence
Parameters
Description
Examples
Compatibility
DecodeEntities( s )
s
-
string; Maple string
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 "π".
withStringTools:
r≔DecodeEntitiesπ + π + π
r≔π + π + π
convertr,bytes
207,128,32,43,32,207,128,32,43,32,207,128
r≔DecodeEntitiesエンコード
r≔エンコード
r≔EncodeEntitiesr:lprintr
"エンコード"
pichar≔DecodeEntitiesπ
pichar≔π
r≔EncodeEntitiescatIs ,pichar, > 3.14:lprintr
"Is π > 3.14"
The StringTools[DecodeEntities] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
StringTools[EncodeEntities]
StringTools[Escape]
Download Help Document