First of all, you should have the following information in hand:
- Your editor is an eol character (which stands for "end of line")
- Your charset editor (Dreamweaver, frontpage, eclipse, etc.)
- Your input encoding (client browser)
- Your server encoding (internal programming language: php, java, etc.)
- Your output encoding (response related to client browser)
Typically, the EOL character is the meta character "\ n", which means "new line". This is great for almost any unix-based system, which will also return the column pointer to the beginning of the line. Windows-based systems do not have this second behavior, adding a position to the pointer to the row, but the column pointer will remain the same. So, to fix this problem, Windows-based systems use the extra metacharacter "\ r" just before "\ n". "\ r" means "carriage return" and refers to ancient technology. This function reset the column pointer to the beginning of the line.
In the binary processing instructions, the line "You must buy the bike. \ RYou shalt" should be translated to "You are buying the bike." since at the position of the column "\ r" the interpreter will reset the column pointer to the beginning of the line and will begin to be overwritten with a bit sequence immediately after (metacharacter "\ r").
Therefore, on Windows-based systems, you should use "\ r \ n" to return the carriage and feed the line. This will also work well with Unix based systems.
Beware of translations ... Check source and target encodings. If they differ from each other, this can lead to doubling or trimming of lines. You may also get some corrupted characters in your lines.
Original:
<div id='tmp'> deja vรบ </div>
Folding:
<div id='tmp'> deja vรยบ </div>
a haircut:
<div id='tmp'> deja v </div>
user2804429
source share