Hello All,
This question below is about the content of an MRTG config file but the fact it's MRTG isn't really relevant, it's basically a plain text file...
Well anyway, I have a file where a couple of lines in the file contain the degree symbol, i.e. --> °
The original file is displayed on a web frontend of Routers2 (probably not relevant either), and it displays
perfectly as it is with the Degree symbol showing correctly on the page. Which shows like this:
So I wanted to make some changes to the file and keep the original. So I simply copy/pasted the file from a server's Gedit program (running remotely with SSH) into a new file and made some changes (using the same Gedit window, but just into a new Gedit Tab). Now when I view this NEW page in the browser it is shown as this:
So I'm assuming that something is happening when I'm copy/pasting to the new file. When viewing this line (for both files) say
in VI or Gedit it shows just fine. So I ran the "od -a" command on both files and it is showing that there is an extra character
within the NEW file's Octal representation.
Here's the output from the the "od -a" commands:
Code:
### GOOD FILE:
D e g r e e s sp 0 F nl
### BAD FILE
D e g r e e s sp B 0 F nl
As you can see above there is an extra character showing up after the copy/pasting. Not exactly sure what's going on... Puzzled..???
If anyone has any idea what's happening or has a better way in which copying the new file would create an EXACT replica of the original would be great!!
Thanks in Advance,
Matt