I get an error on a specific file (it's just text) that it can't open it. Something about the character encoding? Huh? It's plain text! Just open it! It opens in other programs, but I don't want to have to use a different program just for that one file. It's a script that's part of a program. Is it trying to detect the programming language so it can parse it or something? Is there a way to bypass that if it's really a problem?
The text editor is called Xed. It's just the one that's built into Mint. This is the exact error I get:
I know as a fact that it's a text file because it opens fine in Windows notepad. It's the same format as about 20 other files in the same folder which all open fine.
Ok so this file is really weird. I opened it in another program in Linux and it shows up as chinese. But it's just plain text! How is it not "decoding" it right, when it's plain text? There's no decoding to do, just display it byte per byte!
Made an interesting discovery, it seems anything that has the word Checksum: in it it does not like.
This file causes certain programs to puke: (notepad and Vim open it fine though - this is copied from Vim)
Not sure what that ^M is about, but wondering if that's playing a role somehow?
While this file is ok:
(cut off the rest just to keep it short)
The text editor is called Xed. It's just the one that's built into Mint. This is the exact error I get:
Code:
xed has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again.
I know as a fact that it's a text file because it opens fine in Windows notepad. It's the same format as about 20 other files in the same folder which all open fine.
Ok so this file is really weird. I opened it in another program in Linux and it shows up as chinese. But it's just plain text! How is it not "decoding" it right, when it's plain text? There's no decoding to do, just display it byte per byte!
Made an interesting discovery, it seems anything that has the word Checksum: in it it does not like.
This file causes certain programs to puke: (notepad and Vim open it fine though - this is copied from Vim)
Code:
/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Jan-24-2016 09:06:43pm
Checksum: 8B2E68E2285230F813FC9B3AD3C59F6
Filepath: scripts/Multis/BaseHouse.cs
Lines of code: 3039
Description:
***********************************************************/
^M
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Multis.Deeds;
using Server.Regions;
using Server.Network;
Not sure what that ^M is about, but wondering if that's playing a role somehow?
While this file is ok:
Code:
/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by
Checksum: C017F922BFCD865C71A395CBBB262B1
Filepath: scripts/Multis/Deeds.cs
Lines of code: 693
Description:
***********************************************************/
using Server;
using System;
using System.Collections;
using Server.Multis;
using Server.Targeting;
using Server.Items;
(cut off the rest just to keep it short)
Last edited: