When data that has been entered into HTML forms is submitted, the form field names and values are encoded and sent to the server in an HTTP request message using method GET or POST, or, historically, via email. The encoding used by default is based on a very early version of the general URI percent-encoding rules, with a number of modifications such as newline normalization and replacing spaces with "+" instead of "%20". The MIME type of data encoded this way is application/x-www-form-urlencoded, and it is currently defined (still in a very outdated manner) in the HTML and XForms specifications.
iconv -f cp1251 -t utf8 file.csv > file.utf8.csv
sqlite3 $(sudo find /private/var/folders -name com.apple.dock.launchpad)/db/db "DELETE FROM apps WHERE title='APPNAME';" && killall Dock
$array = [ 1, 2, 6.1, 6.2, 6.3, 6.4, 6.5, 7, 8 ];
$result = [ ];
for( $i = 0, $size = count( $array ); $i < $size; $i ++ ) {
$start = $array[ $i ];
$end = $start;
while( isset( $array[ $i + 1 ] ) && ! bccomp( $array[ $i + 1 ] - $array[ $i ], 0.1, 1 ) ) {
$end = $array[ ++ $i ];
}
$result[] = $start == $end ? $start : $start . '-' . $end;
}
print_r( $result );
/*
Array
(
[0] => 1
[1] => 2
[2] => 6.1-6.5
[3] => 7
[4] => 8
)
*/