title: Invalid Unicode code point 0xd83f
body: <p>I'm trying to port some Java to Go. The Java code has a character variable with the value <code>'\ud83f'</code>. When I try to use this value in Go, it doesn't compile:</p>
  
  <pre><code>package main
  func main() {
      c := '\ud83f'
      println(c)
  }
  </code></pre>
  
  <p>
  
  <pre><code>$ go run a.go
  # command-line-arguments
  ./a.go:3: invalid Unicode code point in escape sequence: 0xd83f
  </code></pre>
  
  <p>Why? I also tried making a string with that value in Python and it worked too. It's just not working in Go for some reason.</p>