Returns the text converted to another coding type.
1 string.convert
<string.convert
encoding-src='encoding-src'
encoding-dst='encoding-dst'
>
<text /> !
</string.convert>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aencoding-src | string | Coding type of the entry text (ISO-8859-1, UTF-8 ...). | |||
Aencoding-dst | string | Coding type of the output text (ISO-8859-1, UTF-8 ...). |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | string |
Returns | |
---|---|
Type | Description |
string |
Example
Converts a text in utf-8 to iso-8859-15.
Copy
<xsql-script name='string_convert_sample1'> <body> <set name = 'm_text'>Liberación</set> <println><string.convert encoding-src='utf-8' encoding-dst='ISO-8859-15'><m_text/></string.convert></println> </body> </xsql-script>
Returns:
Copy
Liberación