Skip to content

Instantly share code, notes, and snippets.

View apavlyut's full-sized avatar

Alexander Pavlyut apavlyut

View GitHub Profile
# ruby 2.0
str = "\u0000\u0001\u000177773705257\u0000\u0000\u0001559#81635181\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\b\u0000\b\u0004!\u0004\"\u0004\u001E\u0004\u001F"
puts "str:\n"
puts str
puts "\n here relults for str:"
yes = str.force_encoding("utf-16be").encode("utf-8")
puts yes
puts yes.include?('СТОП')
puts str.force_encoding("utf-16le").encode("utf-8")
@apavlyut
apavlyut / Torg12
Last active December 16, 2015 03:48
<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%= stylesheet_link_tag "print_order", :media => "print, screen" %>
</head>
<body>
<p align="right">
Унифицированная форма № ТОРГ- 12 Утверждена постановлением Госкомстата России от 25.12.98 № 132