You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command can scan a file to see if it's UTF-8 compatible. It's more important than the get command. Options:
during add, the program scans a file to see if it's a UTF-8 file. If yes, then it will add with conversion.
a command that will convert all UTF-8 files into UNIX format.
Note: Using # 1, be cautious about sequences like this: \r\r\n. We shouldn't convert it to \r\n because during the get command we will not revert it back to \r\r\n.
get command
During get we can set a flag if the file is UTF-8. Also, we calculate how many new lines \n in the file w/o \r. If yes, we convert a temporary file to Windows format, and after that, we copy the file. We are converting the file by extending it from the back by a number of \n.
The text was updated successfully, but these errors were encountered:
sergey-shandar
changed the title
Recognize text file and replace \r\n on Windows
Recognize text file and replace \r\n on Windows to \n
Oct 28, 2023
sergey-shandar
changed the title
Recognize text file and replace \r\n on Windows to \n
Recognize a text file and replace \r\n on Windows to \n
Oct 29, 2023
This applies only to Windows:
Methods:
add
commandThe command can scan a file to see if it's UTF-8 compatible. It's more important than the
get
command. Options:add
, the program scans a file to see if it's a UTF-8 file. If yes, then it will add with conversion.Note: Using # 1, be cautious about sequences like this:
\r\r\n
. We shouldn't convert it to\r\n
because during theget
command we will not revert it back to\r\r\n
.get
commandDuring
get
we can set a flag if the file isUTF-8
. Also, we calculate how many new lines\n
in the file w/o\r
. If yes, we convert a temporary file to Windows format, and after that, we copy the file. We are converting the file by extending it from the back by a number of\n
.The text was updated successfully, but these errors were encountered: