$isutf » History » Version 1
Per Amundsen, 10/17/2015 08:32 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.9_ |
|---|---|---|---|
| 2 | |||
| 3 | *$isutf(text)* |
||
| 4 | |||
| 5 | Returns 1 if the text is utf8 encoded, otherwise 0. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | text - Text to check. |
||
| 10 | |||
| 11 | *Example* |
||
| 12 | |||
| 13 | <pre> |
||
| 14 | ; Test the text 'æøå' |
||
| 15 | //echo -ag Text $iif($isutf(æøå),is,is not) utf8 |
||
| 16 | |||
| 17 | ; Test the text 'abc' |
||
| 18 | //echo -ag Text $iif($isutf(abc),is,is not) utf8 |
||
| 19 | </pre> |