View guestbook.gmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guestbook | |
=> /cgi-bin/guestbook.pl Add your entry |
View utf8decode.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Printf("U+%04X\n", decode([]byte{0x61})) | |
fmt.Printf("U+%04X\n", decode([]byte{0xc2, 0xa1})) | |
fmt.Printf("U+%04X\n", decode([]byte{0xea, 0x9c, 0xb3})) |