UP | HOME

NOTE: bytes encoding conversion in Racket

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

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

result
success-length
status

Footnotes:

Date: 2022-07-14 Thu 00:00
Author: Lîm Tsú-thuàn