开发者

See the exact byte sequence of an R string?

开发者 https://www.devze.com 2023-01-16 06:03 出处:网络
How can I get the byte sequence of a particular UTF-8 string?I\'m seeing what looks like some bug in the regex engine which is only triggered in some 开发者_运维技巧edge cases, and I\'d like to know e

How can I get the byte sequence of a particular UTF-8 string? I'm seeing what looks like some bug in the regex engine which is only triggered in some 开发者_运维技巧edge cases, and I'd like to know exactly what data it's working on.


Maybe charToRaw?

> charToRaw("R-string")
[1] 52 2d 73 74 72 69 6e 67


Also check out the hexView package by none other than Paul Murrell.

0

精彩评论

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

关注公众号