开发者

How to decode strings in Emacs Lisp?

开发者 https://www.devze.com 2023-02-16 03:55 出处:网络
I\'m writing an Emacs extension and want to fetch some data from the Internet. Using url-retrieve-synchronously and some simple text processing I can get a string like

I'm writing an Emacs extension and want to fetch some data from the Internet. Using url-retrieve-synchronously and some simple text processing I can get a string like

"\273\313\2开发者_高级运维71\311\267\335 abcd"

The first several characters are encoded in GBK, I'd like to know how to decode them? Many thanks.


See decode-coding-string.

0

精彩评论

暂无评论...
验证码 换一张
取 消