Search notes:

R mode: character

Encodings

A character string in R is encoded in one of
The used (declared) encoding can be determined with Encoding() which returns a character vector with one of the following values:
getOption('encoding')
Encoding(…)
Sys.getlocale('LC_ALL')
l10info()
enc2native(…)
enc2utf8(…)
anyString <- "Söme strängé tëxt"

# Interprete bytes in anyString as latin1
Encoding(anyString) <- 'latin1'

# Convert (hopefully natively as latin1 encoded) string to utf8
stringUTF8 <- enc2utf8(anyString)

See also

charToRaw(…), nchar(…), Encoding(…)
mode

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/developm...', 1758207816, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/object/mode/character/index(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78