unicode

Returns an integer representation of the unicode character.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X   X

Syntax

int unicode(character)
char2       character

Description

Returns unicode integer value of character.
character specifies the char (alphanumeric or space) to process.

Example

Prints the unicode code for each character or space as given.
{
int    i,len;
char2  s[80];
char2  ch;
s = "Hi my name is Bentley";

for (i=1;i<=length(s);i++) {
  ch = substr(s,i,1);
  printf("The UNICODE value of '" ^^ ch ^^ "' is " ^^ unicode(ch));
  }
}