Skip to content

Unicode Support

Harneet has first-class support for Unicode, allowing you to work with international characters and emojis seamlessly.

UTF-8 Encoding

All strings in Harneet are UTF-8 encoded. This means you can use any Unicode character in your strings, comments, and identifiers.

Examples

Unicode in Strings

Unicode Strings
1
2
3
4
5
package main
import fmt

var greeting = "Hello, 世界 🌍"
fmt.Println(greeting)

Unicode in Identifiers

Unicode Identifiers
1
2
3
package main
var 你好 = "Hello"
fmt.Println(你好)