Next: foreign-string-alloc, Previous: Strings, Up: Strings [Contents][Index]
A keyword.
:utf-8
This special variable holds the default foreign encoding.
CFFI> *default-foreign-encoding* :utf-8 CFFI> (foreign-funcall "strdup" (:string :encoding :utf-16) "foo" :string) "f" CFFI> (let ((*default-foreign-encoding* :utf-16)) (foreign-funcall "strdup" (:string :encoding :utf-16) "foo" :string)) "foo"
Other Types (:string
type)
foreign-string-alloc
foreign-string-to-lisp
lisp-string-to-foreign
with-foreign-string
with-foreign-pointer-as-string