Search notes:

PowerShell data type: Char

ASCII value of a char

The following construct demonstrates how the ASCII value of a char can be determined:
[byte][char]'q'
PowerShell does not have a specific literal-syntax for chars so that 'q' denotes a string. Thus, the 'q' needs first to be cast to a char before it can be cast to a byte.

See also

Datatypes in PowerShell

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758193085, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/type/char/index(43): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78