src/Pure/General/utf8.scala
author nipkow
Thu, 03 Jul 2025 13:53:14 +0200
changeset 82802 547335b41005
parent 80508 8585399f26f6
permissions -rw-r--r--
removed duplicate lemma; added the notion of the kernel of a function

/*  Title:      Pure/General/utf8.scala
    Author:     Makarius

Variations on UTF-8.
*/

package isabelle


import java.nio.charset.{Charset, StandardCharsets}


object UTF8 {
  val charset: Charset = StandardCharsets.UTF_8

  def bytes(s: String): Array[Byte] = s.getBytes(charset)
}