5
NOTE: bytes encoding conversion in Racket
source link: https://dannypsnl.github.io/blog/2022/07/14/cs/bytes-convert-racket/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The following code records how to convert bytes's encoding in Racket, from MS950(CP950) to UTF-8NOTE: bytes encoding conversion in Racket
Email: [email protected]
GitHub: @dannypsnl
Twitter: @dannypsnl
Programming Language Theory • System Programming
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
author: Lîm Tsú-thuàn/林子篆/Danny
category:cs
tag:notems950cp950
Similar Articles
All works in this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.©2022 dannypsnl(林子篆)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK