UP | HOME

NOTE: bytes encoding conversion in Racket

The following code records how to convert bytes's encoding in Racket, from MS950(CP950) to UTF-8

(define-values (result success-length status)
  (bytes-convert (bytes-open-converter "CP950" "UTF-8")
		 #"A888º£BC"))

result
success-length
status

Date: 2022-07-14 Thu 00:00

Author: Lîm Tsú-thuàn