2026-08-13
Daily Tech Challenge
What does this Go program print on its three lines, given how strconv.Quote and strconv.QuoteToASCII treat a printable non-ASCII rune?
package main
import (
"fmt"
"strconv"
)
func main() {
s := "héllo\tworld"
fmt.Println(strconv.Quote(s))
fmt.Println(strconv.QuoteToASCII(s))
fmt.Printf("%q\n", s)
}Thursday, August 13, 2026 · A new challenge drops every day