Library: Character encodings, international (OMEFIO)
define external string sink function Big5-output-file value string filename exceptions-to value io-exception exceptions-to optional
This external string sink function converts a stream of UTF-8 characters to a stream of Big Five characters.
Big 5 is a Chinese character set encoding that specifies 13,494 Chinese characters. It is the most widely used encoding in Taiwan and its name refers to the five companies that collaborated in its development in 1984.
set Big5-output-file "myfile.utf" to my-buffer exceptions-to e do when get-exception-status e != 0 put #error "Error " || "16r8fzud" % get-exception-status e || "occurred. %n" done
You should note two common errors.