Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 20th, 2018
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/env ruby
$KCODE = 'U'
def encode (text)
text.gsub(/./) do |ch|
sprintf("&#x%02X;", ch.unpack("U")[0])
end
end
print encode(STDIN.read)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 26 sec ago | 0.39 KB
clipboard_fix_csv_reset
Python | 28 min ago | 2.22 KB
Untitled
C++ | 44 min ago | 1.85 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.38 KB
estructura cuestonario entrevista
JSON | 1 hour ago | 0.73 KB
win_env_var_explorer2
Python | 2 hours ago | 4.80 KB
Untitled
C++ | 2 hours ago | 0.61 KB
СПРИНТ № 7 | Модель памяти в C++ | Урок 8: Ко...
C++ | 2 hours ago | 4.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!