tags:

views:

65

answers:

2

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.

+4  A: 

Maybe charToRaw?

> charToRaw("R-string")
[1] 52 2d 73 74 72 69 6e 67
Joshua Ulrich
Perfect, thanks! "Raw" was the keyword I was missing in my searches.
Ken Williams
+1  A: 

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

Jeff