Subject: Re: Character conversion !!
From: Erik Naggum <>
Date: 1999/07/27
Newsgroups: comp.lang.lisp
Message-ID: <>

* "Olivier Pinçon" <>
| How can I transform single characters (like 'A, 'B, 'C) in strings which
| contain 1 character (respectively "A", "B", "C") ?
| Please tell it me !! It should'nt be complicated !!

  'A, 'B, and 'C aren't characters, they are (quoted) symbols.

  if you want a mapping from string to symbol, it's INTERN (creates it) or
  FIND-SYMBOL (looks it up, only).  if you want a mapping from symbol to
  string, it's SYMBOL-NAME.

  #\A, #\B, and #\C are characters.  if you have a string of length one or
  a symbol whose symbol-name is a string of length one, CHARACTER will
  return the corresponding character.

  (character 'a) => #\A

  if you want to create a string out of a character, STRING will do that:

  (string #\a) => "a"

  which textbook or reference manual are you using?

  [I have assumed Common Lisp in the absence of any contrary information.]

  suppose we blasted all politicians into space.
  would the SETI project find even one of them?