DecodeEntities - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


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

> 

with⁡StringTools:

> 

r≔DecodeEntities⁡π + π + π

r≔π + π + π

(1)
> 

convert⁡r,bytes

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

(2)
> 

r≔DecodeEntities⁡エンコード

r≔エンコード

(3)
> 

r≔EncodeEntities⁡r:lprint⁡r

"エンコード"

> 

pichar≔DecodeEntities⁡π

pichar≔π

(4)
> 

r≔EncodeEntities⁡cat⁡Is ,pichar, > 3.14:lprint⁡r

"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.

• 

The StringTools[DecodeEntities] command was updated in Maple 2025.

See Also

StringTools

StringTools[EncodeEntities]

StringTools[Escape]