VBA Output to file using UTF-16

Your point about UTF-8 not being able to store all characters you need is invalid. UTF-8 is able to store every character defined in the Unicode standard. The only difference is that, for text in certain languages, UTF-8 can take more space to store its codepoints than, say, UTF-16. The opposite is also true: for … Read more

How to read utf16 text file to string in golang?

The latest version of golang.org/x/text/encoding/unicode makes it easier to do this because it includes unicode.BOMOverride, which will intelligently interpret the BOM. Here is ReadFileUTF16(), which is like os.ReadFile() but decodes UTF-16. package main import ( “bytes” “fmt” “io/ioutil” “log” “strings” “golang.org/x/text/encoding/unicode” “golang.org/x/text/transform” ) // Similar to ioutil.ReadFile() but decodes UTF-16. Useful when // reading data … Read more

Emoji value range

The Unicode standard’s Unicode® Technical Report #51 includes a list of emoji (emoji-data.txt): … 21A9 ; text ; L1 ; none ; j # V1.1 (↩) LEFTWARDS ARROW WITH HOOK 21AA ; text ; L1 ; none ; j # V1.1 (↪) RIGHTWARDS ARROW WITH HOOK 231A ; emoji ; L1 ; none ; j … Read more